tomkp / react-split-pane

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

How to split into two parts? #28

Open whisper-bye opened 8 years ago

whisper-bye commented 8 years ago
<SplitPane split="horizontal" minSize="200">

the only limits the height of the upper part of the 200px, how to limit the height of the lower half? thx!

bannik commented 8 years ago

@whisper-bye as far as I know the only way right now is to put a large minSize ex minSize="1000" but I will check maybe I will be able to fix it in next couple of days :)

Theadd commented 8 years ago

/src/SplitPane.js#L116

it would be as easy as changing that to flexDirection: 'row-reverse', but... there's no (provided) way we can pass other style properties to that div other than ... !important.

tomkp commented 8 years ago

I'm going to hopefully take a look at this sometime soon.

Any thoughts on accepting the minSize on an inner Pane component like this?

<SplitPane split="horizontal">
    <div></div> 
    <Pane minSize="200"><div></div></Pane>
</SplitPane>
Nantris commented 7 years ago

@tomkp that would be great to have that ability.