Jump to content

GUI - Make StackPanel children affected by idealWidth


royibernthal
 Share

Recommended Posts

What do you think about making StackPanel children also be affected by idealWidth the way they are in a normal container?

 

StackPanel - The StackPanel itself is affected by idealWidth, but it seems its children are not.

http://www.babylonjs-playground.com/#XCPP9Y#62

Container - Both the container and its children are affected by idealWidth, hence the result looks good.

http://www.babylonjs-playground.com/#XCPP9Y#64

 

I'm guessing the problem is ignoreAdaptiveScaling is set to false in some cases which prevents the behavior I'm trying to achieve?

 

It'll take me some time to learn BABYLON.GUI source before I can start doing proper PRs, until then it'd be great to hear your thoughts on this :)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...