Skip to content

Commit 1fdab02

Browse files
committed
fix: added footer height to content height when using dynamic sizing (#1725)
1 parent 32711dc commit 1fdab02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/bottomSheetScrollable/createBottomSheetScrollableComponent.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export function createBottomSheetScrollableComponent<T, P>(
8585
const handleContentSizeChange = useStableCallback(
8686
(contentWidth: number, contentHeight: number) => {
8787
if (enableDynamicSizing) {
88-
animatedContentHeight.value = contentHeight;
88+
animatedContentHeight.value =
89+
contentHeight +
90+
(enableFooterMarginAdjustment ? animatedFooterHeight.value : 0);
8991
}
9092

9193
if (onContentSizeChange) {

0 commit comments

Comments
 (0)