Skip to content

Commit

Permalink
fix: drawer visualVierport height
Browse files Browse the repository at this point in the history
  • Loading branch information
JinleeJeong committed Mar 31, 2024
1 parent cf0f237 commit 597e91d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/(input)/ticker/_components/ticker-drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const TickerDrawer = React.memo(
const drawerHeight = drawerRef.current?.getBoundingClientRect().height || 0;

drawerRef.current.style.height = `${visualViewportHeight - DRAWER_OFFSET}px`;
drawerRef.current.style.bottom = `${Math.max(diffFromInitial, 0)}px`;
}

window.visualViewport?.addEventListener("resize", onVisualViewportChange);
Expand Down

0 comments on commit 597e91d

Please sign in to comment.