File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
packages/react-native-sortables/src/components/shared Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments