mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
web: fix collapsed pane cannot be resized
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user