collapsedSize and buttonPositionOffset adjustments
gweis opened this issue · 0 comments
gweis commented
Hi, ... very nice package.
I think I have found 3 small issues though.
-
this line adjust the offset by 50 pixels (hardcoded), but I think it should usecollapsedSize
for both -
https://github.com/b-zurg/react-collapse-pane/blob/master/src/components/Resizer/index.tsx#L115
when creating theflex
style forprevButtonFlex
andpostButtonFlex
theflex-basis
needs a unit, otherwise browser like chrome will ignore the applied style. -
The examples in https://github.com/b-zurg/react-collapse-pane/blob/master/docs/README.md pass
collapseOptions
as property toSplitPane
, but I think the prop should be namedcollapse
.
cheers