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.