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

Disable workspace resizing while loading the flyout from XML #782

Merged

Conversation

rachel-fenichel
Copy link
Collaborator

Fixes #387

Copy link
Contributor

@picklesrus picklesrus left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -798,6 +799,7 @@ Blockly.Flyout.prototype.show = function(xmlList) {
} else {
this.width_ = 0;
}
this.workspace_.setResizesEnabled(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe put a note or add to the bug that we should consider putting this after reflow? Reflow calls targetWorkspace.resize at the end, so theoretically we could skip that one in favor of the one triggered when you call setResizesEnabled(true) (i.e. what you were telling me yesterday).

@rachel-fenichel rachel-fenichel merged commit 6b39c7d into google:develop Dec 15, 2016
@rachel-fenichel rachel-fenichel deleted the feature/flyout_disable_resize branch December 15, 2016 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants