GeoffCox / svelte-splitter

MIT License
21 stars 6 forks source link

Scrollable content inside the split panes #1

Open brettdawkins opened 3 years ago

brettdawkins commented 3 years ago

Hi Geoff I'm keen to know if you have thought about scrollable content inside the split panes/divs?

Also

should be console.log(${event.detail.percent}) for the onChanged event

Brett

GeoffCox commented 3 years ago

I do expect callers to have scrollable content within their panes. The divs created by the split control are set to width and height of 100% to fill the area. I have to do this for calculation of the other pane based on the area of the split control.

Callers can easily get scrollable content by having the control they slot in have width and height at 100% and overflow set to scroll. Let's say then put a flex box inside their control that goes beyond the bounds, then they would have scroll bars appear.

Thanks for noticing the detail property is missing!