mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
fix: mutator not resizing for flyout (#6917)
This commit is contained in:
@@ -367,7 +367,9 @@ export class Mutator extends Icon {
|
||||
}
|
||||
this.resizeBubble();
|
||||
// When the mutator's workspace changes, update the source block.
|
||||
ws.addChangeListener(this.workspaceChanged.bind(this));
|
||||
const boundListener = this.workspaceChanged.bind(this);
|
||||
ws.addChangeListener(boundListener);
|
||||
if (flyout) flyout.getWorkspace().addChangeListener(boundListener);
|
||||
// Update the source block immediately after the bubble becomes visible.
|
||||
this.updateWorkspace();
|
||||
this.applyColour();
|
||||
|
||||
Reference in New Issue
Block a user