Skip to content

Commit

Permalink
Merge pull request #4 from farmanrl/farmanrl-defaultSize-prop
Browse files Browse the repository at this point in the history
Add PropType.string for defaultSize to allow "xx%"
  • Loading branch information
ndelangen authored Apr 23, 2017
2 parents 8da6264 + ada2a83 commit 736fc17
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 @@ -200,7 +200,7 @@ SplitPane.propTypes = {
primary: PropTypes.oneOf(['first', 'second']),
minSize: PropTypes.number,
maxSize: PropTypes.number,
defaultSize: PropTypes.number,
defaultSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string)],
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
allowResize: PropTypes.bool,
split: PropTypes.oneOf(['vertical', 'horizontal']),
Expand Down

0 comments on commit 736fc17

Please sign in to comment.