web: fix collapsed pane cannot be resized

This commit is contained in:
Abdullah Atta
2025-02-24 11:10:37 +05:00
parent 7f6274821c
commit 23f710856e

View File

@@ -308,6 +308,8 @@ export const SplitPane = React.forwardRef<
const nextPane = paneSizes.current[i + 1];
const rightBorder = sashPosSizes.current[i + 2];
if (currentPane.collapsed) currentPane.collapsed = false;
if (currentPane.size + distanceX >= rightBorder)
distanceX = rightBorder - currentPane.size;