Skip to content

Commit 0ea05a6

Browse files
arpitgarg101wuweiweiwu
authored andcommitted
Updated SplitPane - Resize logic updated (#406)
1 parent 9c49aad commit 0ea05a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SplitPane.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ class SplitPane extends Component {
290290
if (primaryHasReachedLimit) {
291291
secondarySizePx = primary[sizeDim] + secondary[sizeDim] - primarySizePx;
292292
} else if (secondaryHasReachedLimit) {
293-
primarySizePx = primary[sizeDim] + primary[sizeDim] - secondarySizePx;
293+
primarySizePx = primary[sizeDim] + secondary[sizeDim] - secondarySizePx;
294294
}
295295

296296
sizesPx[resizerIndex] = primarySizePx;

0 commit comments

Comments
 (0)