StackPanel at Bottom-Center



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



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:


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.


ok. Thank you