mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
fix: do not hide all chaff when resizing (#6916)
This commit is contained in:
committed by
GitHub
parent
2fa7280ce1
commit
2bbb3aa1fc
@@ -213,7 +213,12 @@ function init(mainWorkspace: WorkspaceSvg) {
|
||||
|
||||
const workspaceResizeHandler =
|
||||
browserEvents.conditionalBind(window, 'resize', null, function() {
|
||||
mainWorkspace.hideChaff(true);
|
||||
// Don't hide all the chaff. Leave the dropdown and widget divs open if
|
||||
// possible.
|
||||
Tooltip.hide();
|
||||
mainWorkspace.hideComponents(true);
|
||||
dropDownDiv.repositionForWindowResize();
|
||||
WidgetDiv.repositionForWindowResize();
|
||||
common.svgResize(mainWorkspace);
|
||||
bumpObjects.bumpTopObjectsIntoBounds(mainWorkspace);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user