Skip to content

Commit a621b75

Browse files
committed
chore: Use bottomDrawerReportedSize for layout calculations
1 parent 996ceea commit a621b75

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/app-layout/visual-refresh-toolbar/drawer/local-drawer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function AppLayoutDrawerImplementation({ appLayoutInternals }: AppLayoutD
3737
onActiveDrawerChange,
3838
onActiveDrawerResize,
3939
activeGlobalBottomDrawerId,
40-
activeGlobalBottomDrawerSize,
40+
bottomDrawerReportedSize,
4141
} = appLayoutInternals;
4242
const drawerRef = useRef<HTMLDivElement>(null);
4343
const activeDrawerId = activeDrawer?.id;
@@ -51,7 +51,7 @@ export function AppLayoutDrawerImplementation({ appLayoutInternals }: AppLayoutD
5151
verticalOffsets,
5252
isMobile,
5353
placement,
54-
activeGlobalBottomDrawerId ? activeGlobalBottomDrawerSize : 0
54+
activeGlobalBottomDrawerId ? bottomDrawerReportedSize : 0
5555
);
5656
const toolsOnlyMode = drawers.length === 1 && drawers[0].id === TOOLS_DRAWER_ID;
5757
const isToolsDrawer = activeDrawer?.id === TOOLS_DRAWER_ID || toolsOnlyMode;

src/app-layout/visual-refresh-toolbar/navigation/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ export function AppLayoutNavigationImplementation({ appLayoutInternals }: AppLay
2828
placement,
2929
verticalOffsets,
3030
activeGlobalBottomDrawerId,
31-
activeGlobalBottomDrawerSize,
31+
bottomDrawerReportedSize,
3232
} = appLayoutInternals;
3333

3434
const { drawerTopOffset, drawerHeight } = getDrawerStyles(
3535
verticalOffsets,
3636
isMobile,
3737
placement,
38-
activeGlobalBottomDrawerId ? activeGlobalBottomDrawerSize : 0
38+
activeGlobalBottomDrawerId ? bottomDrawerReportedSize : 0
3939
);
4040

4141
// Close the Navigation drawer on mobile when a user clicks a link inside.

src/app-layout/visual-refresh-toolbar/split-panel/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ export function AppLayoutSplitPanelDrawerSideImplementation({
2626
isMobile,
2727
splitPanelAnimationDisabled,
2828
activeGlobalBottomDrawerId,
29-
activeGlobalBottomDrawerSize,
29+
bottomDrawerReportedSize,
3030
} = appLayoutInternals;
3131
const { drawerTopOffset, drawerHeight } = getDrawerStyles(
3232
verticalOffsets,
3333
isMobile,
3434
placement,
35-
activeGlobalBottomDrawerId ? activeGlobalBottomDrawerSize : 0
35+
activeGlobalBottomDrawerId ? bottomDrawerReportedSize : 0
3636
);
3737

3838
return (

0 commit comments

Comments
 (0)