Skip to content

Commit de46333

Browse files
committed
Remaining fixes after absolute layout transition changes
1 parent 6d25412 commit de46333

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

packages/react-native-sortables/src/components/shared/SortableContainer.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,15 @@ export default function SortableContainer({
109109
});
110110

111111
const animatedMeasurementsContainerStyle = useAnimatedStyle(() => {
112-
if (!usesAbsoluteLayout.value) {
112+
const ctrl = controlledContainerDimensions.value;
113+
const height = ctrl.height ? containerHeight.value : undefined;
114+
const width = ctrl.width ? containerWidth.value : undefined;
115+
116+
if (!height && !width) {
113117
return EMPTY_OBJECT;
114118
}
115119

116-
const ctrl = controlledContainerDimensions.value;
117-
118-
return {
119-
height: ctrl.height ? containerHeight.value : undefined,
120-
width: ctrl.width ? containerWidth.value : undefined
121-
};
120+
return { height, width };
122121
});
123122

124123
return (

0 commit comments

Comments
 (0)