Skip to content

Commit

Permalink
Updated SplitPane - Resize logic updated (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitgarg101 authored and wuweiweiwu committed Dec 13, 2019
1 parent 9c49aad commit 0ea05a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SplitPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class SplitPane extends Component {
if (primaryHasReachedLimit) {
secondarySizePx = primary[sizeDim] + secondary[sizeDim] - primarySizePx;
} else if (secondaryHasReachedLimit) {
primarySizePx = primary[sizeDim] + primary[sizeDim] - secondarySizePx;
primarySizePx = primary[sizeDim] + secondary[sizeDim] - secondarySizePx;
}

sizesPx[resizerIndex] = primarySizePx;
Expand Down

0 comments on commit 0ea05a6

Please sign in to comment.