mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Reflow workspace- and toolbox-owned flyouts when workspace zoom changes.
This commit is contained in:
@@ -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_) {
|
||||
|
||||
Reference in New Issue
Block a user