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

Don't try resizing find widget when it is not visible #38651

Merged
merged 1 commit into from
Nov 25, 2017

Conversation

mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Nov 17, 2017

Part of #34744

Don't try to update the width of the find widget when it is not visible. This update function is slow as it relies on dom.getTotalWidth

Part of microsoft#34744

Don't try to update the width of the find widget when it is not visible. This update function is slow as it relies on `dom.getTotalWidth`
@mjbvz mjbvz self-assigned this Nov 17, 2017
@mjbvz mjbvz requested review from rebornix and alexdima November 17, 2017 19:38
@@ -534,6 +495,48 @@ export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSas
this._replaceInputBox.style(inputStyles);
}

private _tryUpdateWidgetWidth() {
if (!this._isVisible) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the only changed line of the extraction

Copy link
Member

@alexdima alexdima left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you ❤️!

@alexdima
Copy link
Member

Ping @rebornix in case you only monitor PRs assigned to you (like me)

@rebornix
Copy link
Member

Thanks @mjbvz , good enhancement ;)

@rebornix rebornix merged commit c8ba687 into microsoft:master Nov 25, 2017
@alexdima alexdima added this to the November 2017 milestone Dec 8, 2017
@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
editor-find Editor find operations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants