Merge pull request #4938 from gonfunko/flyout-zoom

Reflow flyouts when zoom level changes to keep block zoom level in sync.
This commit is contained in:
Aaron Dodson
2021-07-07 10:29:44 -07:00
committed by GitHub

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_) {