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

Fix: Settings editor renders all tree elements at once #78507

Merged
merged 1 commit into from Aug 5, 2019

Conversation

joaomoreno
Copy link
Member

@joaomoreno joaomoreno commented Aug 5, 2019

Fixes #78505

Fix is to avoid laying out the settings tree when the editor isn't visible. This is usually not an issue for trees/lists except when using the dynamic heights feature which relies on DOM elements to actually have a height when probed. When the settings editor is hidden, calling layout will probe elements for their height... but editors aren't placed into the DOM at that point in time... so when probing for elements' heights, we get 0 for each one... thus rendering them all at once.

@roblourens
Copy link
Member

Thanks!

@roblourens roblourens merged commit 84d62bb into master Aug 5, 2019
@roblourens roblourens deleted the joao/fix-78505 branch August 5, 2019 18:01
@joaomoreno joaomoreno added this to the August 2019 milestone Aug 6, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Perf: Settings editor renders all tree elements at once
2 participants