Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GUI] use ignoreAdaptiveScaling on containers width adaptWidthToChildren or adaptHeightToChildren #12345

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

darraghjburke
Copy link
Contributor

See forum thread: https://forum.babylonjs.com/t/gui-adaptwidthtochildren-not-working-with-adaptive-scaling/28911/7

Containers with adaptWidthToChildren or adaptHeightToChildren currently have adaptative scaling applied twice, once when their children's dimensions are computed and once when their own dimensions are computed. This PR simply turns off adaptive scaling on the relevant property when it's being adapted to the children's dimensions.

@azure-pipelines
Copy link

Please make sure to tag your PR with "bug", "new feature" or "breaking change" tags.

@azure-pipelines
Copy link

Snapshot stored with reference name:
refs/pull/12345/merge

Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/12345/merge/index.html

To test a playground add it to the URL, for example:

https://babylonsnapshots.z22.web.core.windows.net/refs/pull/12345/merge/index.html#WGZLGJ#4600

To test the snapshot in the playground itself use (for example):

https://playground.babylonjs.com/?snapshot=refs/pull/12345/merge#BCU1XR#0

@RaananW RaananW merged commit f8da6fb into BabylonJS:master Apr 6, 2022
@RaananW
Copy link
Member

RaananW commented Apr 6, 2022

I'm very happy to have merged pr number #12345 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants