Vorion Posted January 16, 2018 Share Posted January 16, 2018 Hi, I want to position two (or more) elements inside a Babylon GUI Stackpanel. For two elements, both should use up 50% (three elements -> each 33.33% etc.) of the height of the parent stack panel. But this only seems to work if I directly set the height of the element in pixels, if I set height = 0.5 for each element, it doesn't work as I expected. Here is a playground example: http://www.babylonjs-playground.com/#0Y52HC As you can see there, the second box doesn't fit in correctly in the parent container. If you use the direct pixel settings for the frameHeight variable (line 40-41), the result is how I would want it to be, but calculating it this way isn't a very comfortable way :). What I am doing wrong here? Thanks Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.