Reflow workspace- and toolbox-owned flyouts when workspace zoom changes.

This commit is contained in:
Aaron Dodson
2021-06-28 11:08:03 -07:00
parent 0d44d22629
commit 627647c7f2

View File

@@ -2225,9 +2225,10 @@ Blockly.WorkspaceSvg.prototype.setScale = function(newScale) {
this.scale = newScale;
Blockly.hideChaff(false);
if (this.flyout_) {
// No toolbox, resize flyout.
this.flyout_.reflow();
// Get the flyout, if any, whether our own or owned by the toolbox.
var flyout = this.getFlyout(false);
if (flyout && flyout.isVisible()) {
flyout.reflow();
this.recordDragTargets();
}
if (this.grid_) {