Here’s a link to the playground where the issue can be reproduced: Babylon.js Playground.
According to the first position of the camera:
the front and left views work fine, but when turning to the right and back views, the menu buttons are not aligned properly.
just to confirm - i can reproduce this, but only if i click on one of the menus. is that the case, or does it also happen to the first menu without any interaction?
Sorry, not yet. I will add a GitHub issue to track progress. What I can tell you is that it doesn’t happen if you don’t add the margin definition, so it must be some issue with resizing.
I noticed that the issue was resolved while testing on the playground https://playground.babylonjs.com/#Z6M4WM#4.
I tried updating the @babylonjs/gui package from version ^6.48.0 to ^6.49.0, but I’m still encountering the problem in our project.