Hi,
after updating babylonjs from 6.24.0 to 6.25.0 I’m getting some warnings in the console:
Control (Name:text1, UniqueId:101) is using height in percentage mode inside a vertical StackPanel
I’m using resizeToFit=true, so I think this shouldn’t happen, and it’s only showing after the latest update.
Looking at the inspector, I can see that the control has a height in pixel and it is also shown correctly on screen.
Manually setting the height to some random pixel value removes the warning and the real size remains the same.
Here is small playground example with two text blocks inside a vertial stack panel:
But setting panel.isVertical = false does not show any warnings:
Adding another stack panel with text blocks inside also shows the warning for the new stack panel:
Using an older babylonjs version in the playground also doesn’t show the warning.
Using a vertical stackpanel with adaptHeightToChildren=true and therefore also having a height set in pixels still shows the warning message (see the third playground link of my original post for an example).
Thanks for the previous fixes, but I think I’ve found another one:
Adding a vertical stackpanel inside another vertical stack panel also shows the warning, although the height of stackpanel2 is set in pixel automatically. This doesn’t happen when both stack panels are set to isVertical=false.