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

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

Merged
merged 3 commits into from
Apr 11, 2023

Conversation

weartist
Copy link
Contributor

@weartist weartist commented Apr 9, 2023

…en editor size changes

fix #175944

@@ -216,6 +216,13 @@ export class BreakpointWidget extends ZoneWidget implements IPrivateBreakpointWi
this.centerInputVertically();
}

protected override _onWidth(widthInPixel: number): void {
Copy link
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
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.

Copy link
Member

@roblourens roblourens left a comment

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