mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +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(() => {
|
setTimeout(() => {
|
||||||
this.flyout?.show(contents);
|
this.flyout?.show(contents);
|
||||||
blocklyStyle.cursor = '';
|
blocklyStyle.cursor = '';
|
||||||
|
this.workspace.scrollbar?.setVisible(false);
|
||||||
}, 10);
|
}, 10);
|
||||||
this.fireUiEvent(true);
|
this.fireUiEvent(true);
|
||||||
}
|
}
|
||||||
@@ -316,6 +317,7 @@ export class Trashcan
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.flyout?.hide();
|
this.flyout?.hide();
|
||||||
|
this.workspace.scrollbar?.setVisible(true);
|
||||||
this.fireUiEvent(false);
|
this.fireUiEvent(false);
|
||||||
this.workspace.recordDragTargets();
|
this.workspace.recordDragTargets();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user