Skip to content

Responsive config option does not apply on elements size changes #7059

Open
@ioannis-kokkalis

Description

@ioannis-kokkalis

Hello, I have some issues with responsiveness when using CSS grid and I put charts on it. Searching further, my problem should be equivalent to charts do not get notified for parent size changes and do get notified only for window size changes.

I found this closed issue #3984 and the last comment mentions to open a new related one. From reading the comments there, the problem was:

there is no way to be notified when an element changes size

Since some time has passed and ResizeObserver is well supported from what I'm checking, I think this is an addressable issue. On this comment of issue #3984 is a proof of principle (or/and workaround) using ResizeObserver and I had already created an example in codepen that demonstrates my issue. Also issue #5396 seems to be related I believe.

In codepen example I do use version 2.34.0 which is the current latest, to remember it instead of putting just latest. I did enable template so anyone can test it with other versions if needed.

Available to provide further details when/if necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions