tomkp / react-split-pane

React split-pane component
https://tomkp.github.io/react-split-pane
MIT License
3.22k stars 408 forks source link

initial size and other options not working. #752

Open rjworks opened 3 years ago

rjworks commented 3 years ago

Describe the bug

A clear and concise description of what the bug is. Setting options like minSize and initialSize doesn't work.

To Reproduce

Type this in your code

    <SplitPane>
      <Pane initialSize="60%" minSize="20%" maxSize="20%">
        This Pane has initial size of 60%
      </Pane>
    </SplitPane>

Steps to reproduce the behavior:

Post a link to a CodeSandbox. You can start by forking this one. https://codesandbox.io/s/react-split-pane-base-sandbox-forked-lg9ys?file=/src/index.js

Expected behavior

A clear and concise description of what you expected to happen. The options should be working

Screenshots

If applicable, add screenshots to help explain your problem. image

Additional context

Add any other context about the problem here.

rjworks commented 3 years ago

you also have typos in http://react-split-pane-v2.surge.sh/?MaxPxVerticalExample and some other

55Cancri commented 3 years ago

Can confirm, components and props mentioned in the v2 docs do not work. Typescript does not even show Pane as an exposed component. @tomkp do you have plans to resume work on this highly incredible library? v2 seems nearly complete based on the functionality on the documentation. Do you know how much effort remains to take this package to the finish line?