Skip to content

Commit

Permalink
fix: remove code to initialize dimensions before first paint (#805)
Browse files Browse the repository at this point in the history
This reverts commit 2706777.
  • Loading branch information
johnwalley authored May 22, 2024
1 parent dcc54e7 commit 3657e2d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/allotment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -481,15 +481,6 @@ const Allotment = forwardRef<AllotmentHandle, AllotmentProps>(
},
});

useIsomorphicLayoutEffect(() => {
if (!dimensionsInitialized) {
const { height, width } = containerRef.current.getBoundingClientRect();
splitViewRef.current?.layout(vertical ? height : width);
layoutService.current.setSize(vertical ? height : width);
setDimensionsInitialized(true);
}
}, [dimensionsInitialized, vertical]);

useEffect(() => {
if (isIOS) {
setSashSize(20);
Expand Down

0 comments on commit 3657e2d

Please sign in to comment.