On Tue, 04 Jun 2019 02:42:24 GMT, Alex X wrote:

I have a drawing area inside a paned.

When the paned is shrunk the drawing area shrinks and my drawing is properly scaled since my code is based on the width of the drawing area.

If I shrink it below, around 50 pixels I guess, then the drawing no longer shrinks and is clipped as if the drawing area has a minimum height. That is not the behavior I want.

I'm using

auto h = DA.getAllocatedHeight();

In the inspector I see it limits it to 50. In the inspecter I see something like A x B + 0 + Y for "allocation".

B gets stuck at 50 and Y becomes negative. It knows the "real height" but how do I get this? The information is there but I have no idea what

If I use getHeight it's always 50.

I can't find anything else to get the right value nor what "allocation" is in the inspector.

If I get the size of the parent it works... but I still get strange issues. Seems that the paned's "2nd half" always shows and when the size get to small(< 50) it will split the size between the two parts.

A

B

If A+B is large enough but not too large then only A will be shown, If A+B is too small or too large then both A and B are shown. I'm ok when it is too large as it does what I want(show both A and B) but when it is too small I want it to only show A. B is a scrolled window and so maybe that is causing the problem... I'll have to explore a bit more.