mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
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:
@@ -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