mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
feat: have the trashcan hide scrollbars when the flyout opens (#7357)
This commit is contained in:
@@ -306,6 +306,7 @@ export class Trashcan
|
||||
setTimeout(() => {
|
||||
this.flyout?.show(contents);
|
||||
blocklyStyle.cursor = '';
|
||||
this.workspace.scrollbar?.setVisible(false);
|
||||
}, 10);
|
||||
this.fireUiEvent(true);
|
||||
}
|
||||
@@ -316,6 +317,7 @@ export class Trashcan
|
||||
return;
|
||||
}
|
||||
this.flyout?.hide();
|
||||
this.workspace.scrollbar?.setVisible(true);
|
||||
this.fireUiEvent(false);
|
||||
this.workspace.recordDragTargets();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user