Skip to content

Commit

Permalink
fix: added footer height to content height when using dynamic sizing (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Feb 18, 2024
1 parent 32711dc commit 1fdab02
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export function createBottomSheetScrollableComponent<T, P>(
const handleContentSizeChange = useStableCallback(
(contentWidth: number, contentHeight: number) => {
if (enableDynamicSizing) {
animatedContentHeight.value = contentHeight;
animatedContentHeight.value =
contentHeight +
(enableFooterMarginAdjustment ? animatedFooterHeight.value : 0);
}

if (onContentSizeChange) {
Expand Down

0 comments on commit 1fdab02

Please sign in to comment.