zesik / react-splitter-layout

A simple split layout for React and modern browsers. https://zesik.com/react-splitter-layout
MIT License
422 stars 128 forks source link

Is is possible to set primaryMinSize using px? (when percentage prop is true) #23

Open solt9029 opened 5 years ago

solt9029 commented 5 years ago

This is a really nice library and I am using react-splitter-layout. I set percentage prop true, but I would like to set primaryMinSize using px (like, 100px). Is is possible? Thank you for reading.

example of what I want to do.

<SplitterLayout vertical percentage secondaryInitialSize={80} primaryMinSize="100px">
hkors commented 3 years ago

I need that too. I tried giving the primary pane a min-width using CSS, but the width of the secondary pane can still reach 100%, resulting in overflows etc.