FlexibleXYPlot grows but does not shrink
When the component is set to be a particular percentage of its parent component and is resized to be a bit bigger than that initial width, it does not shrink back down when the window is resized. This can be demonstrated when enclosed in a table cell or in a div set to display: flex: https://codesandbox.io/s/wk6kpxl3jk
Hmm quite an old issue... still happens after more than a year -_-
I played with this and found out that div with class .rv-xy-plot should have a little bit of css help e.g.:
.rv-xy-plot {
// decouples the outer container width from inner container width (width check happens before svg render)
position: absolute;
// masks any glitches caused by denounce on resize event (obv combined with a bit lighter denounce would help more)
overflow: hidden;
}
Hope this will help someone ;-)
Hmm quite an old issue... still happens after more than a year -_-
I played with this and found out that div with class .rv-xy-plot should have a little bit of css help e.g.:
.rv-xy-plot { // decouples the outer container width from inner container width (width check happens before svg render) position: absolute; // masks any glitches caused by denounce on resize event (obv combined with a bit lighter denounce would help more) overflow: hidden; }Hope this will help someone ;-)
obv that's just one of the solutions - and one that can mess a lot with legends & axis