KLineChart icon indicating copy to clipboard operation
KLineChart copied to clipboard

Something in commit c32e6fc92 is causing the sub-indicators to not cause the main chart to resize

Open DeeeeLAN opened this issue 3 years ago • 2 comments

I am using flex to layout the graph and all the other stuff I have assoicated with it. Previously, on 8.2.0 and before, it looked like this: image

After updating to 8.3.0, it now looks like this: image

If I turn off the sub-indicators, it is easy to see that the size of the main graph is the same as the size of the entire graph in the old image, and everything fits in the box nicely. For some reason, when adding the sub-indicators, the main graph is no longer resizing to fit everything in the size of the container.

DeeeeLAN avatar May 10 '22 23:05 DeeeeLAN

Specifically, I have narrowed it down to a change made in commit c32e6fc92.

DeeeeLAN avatar May 12 '22 22:05 DeeeeLAN

Let me check it.

liihuu avatar May 18 '22 10:05 liihuu

I was having the same issue regardless of sub-indicators. I had to add min-width: 0 to the container element and all effected ancestor elements. Here is the relevant stackoverflow post.

jinusean avatar Mar 24 '23 17:03 jinusean