fix: do not hide all chaff when resizing (#6916)

This commit is contained in:
Maribeth Bottorff
2023-04-17 10:06:44 -07:00
committed by GitHub
parent 2fa7280ce1
commit 2bbb3aa1fc
6 changed files with 102 additions and 15 deletions

View File

@@ -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);
});