Skip to content

Fix Settings editor layout order#146069

Merged
rzhao271 merged 2 commits intomainfrom
rzhao271/layout-order
Mar 25, 2022
Merged

Fix Settings editor layout order#146069
rzhao271 merged 2 commits intomainfrom
rzhao271/layout-order

Conversation

@rzhao271
Copy link
Collaborator

@rzhao271 rzhao271 commented Mar 25, 2022

Fixes #145572

Because one specifies a layout field when adding views to the splitview, the container layout calls should happen there, instead, otherwise the layouts are happening in the wrong order.

Thanks to @joaomoreno for pointing out what was going on at #145572 (comment)!

Screencap demo showing the settings items properly increasing in height

@rzhao271 rzhao271 requested a review from roblourens March 25, 2022 16:55
@rzhao271 rzhao271 self-assigned this Mar 25, 2022
@rzhao271 rzhao271 requested a review from joaomoreno March 25, 2022 16:56
@@ -1517,15 +1519,8 @@ export class SettingsEditor2 extends EditorPane {

private layoutTrees(dimension: DOM.Dimension): void {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be renamed to avoid confusion

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed to layoutSplitView

@rzhao271 rzhao271 force-pushed the rzhao271/layout-order branch from fec95db to aeae572 Compare March 25, 2022 17:20
@rzhao271 rzhao271 added this to the March 2022 milestone Mar 25, 2022
@rzhao271 rzhao271 merged commit 8d7f232 into main Mar 25, 2022
@rzhao271 rzhao271 deleted the rzhao271/layout-order branch March 25, 2022 17:55
@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2022
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.

Settings box can overlap setting

2 participants