svelte-splitter icon indicating copy to clipboard operation
svelte-splitter copied to clipboard

Scrollable content inside the split panes

Open brettdawkins opened this issue 3 years ago • 1 comments

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

brettdawkins avatar Jun 25 '21 08:06 brettdawkins

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!

GeoffCox avatar Aug 27 '21 06:08 GeoffCox