StackPanel at Bottom-Center


#1

Hi,

I am trying to place a stackpanel at the bottom-center but it is not working.
Please help me.
Thanks in advance.

PG: https://www.babylonjs-playground.com/#4P8PJY#9


#2

This looks like a bug, I will fix it as part of this issue Turn useInvalidateRectOptimization on by default · Issue #5671 · BabylonJS/Babylon.js · GitHub

It appears to be working in the stable version of babylon so you can use that or disable gui optimization and force height for now:
https://www.babylonjs-playground.com/#4P8PJY#10


#3

Hey, sorry for the delay.

After looking into this more, it looked like the old behavior was incorrect. In your example, the stack panels height is 100% by default so setting its verticalAlignment shouldn’t move it, that is why setting its height to 40px in the playground I sent made it move down.


#4

ok. Thank you