Skip to content

Added support for breakpointWidget to automatically adapt to width wh…#179551

Merged
roblourens merged 3 commits into
microsoft:mainfrom
Kalmaegi:breakpoint_widget_auto_resize
Apr 11, 2023
Merged

Added support for breakpointWidget to automatically adapt to width wh…#179551
roblourens merged 3 commits into
microsoft:mainfrom
Kalmaegi:breakpoint_widget_auto_resize

Conversation

@Kalmaegi

@Kalmaegi Kalmaegi commented Apr 9, 2023

Copy link
Copy Markdown
Contributor

…en editor size changes

fix #175944

this.centerInputVertically();
}

protected override _onWidth(widthInPixel: number): void {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe just call this._onWidth so this isn't duplicating logic? And the other one subtracts 113, I suppose that's for padding?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok so what happened to the - 113? Also please call _onLayout from _onWidth, it feels odd to do it the other way to me.

@roblourens roblourens left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@roblourens roblourens added this to the April 2023 milestone Apr 11, 2023
@roblourens roblourens enabled auto-merge (squash) April 11, 2023 17:09
@roblourens roblourens merged commit 256e9db into microsoft:main Apr 11, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators May 26, 2023
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.

bug: cut off "Edit Condition..." text

3 participants