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 a6f44c0 commit 5009085
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,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 5009085

Please sign in to comment.