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

Set fixed size in px/rem?

Open reformstudios opened this issue 1 year ago • 1 comments

I noticed that with a splitter that scales to the browser window, my fixed pane was still changing size. How can I fix this to an absolute value rather than a percentage?

reformstudios avatar Aug 25 '24 15:08 reformstudios

Unfortunately we do not support px/rem sizing. It is not trivial. So for now, you will need to calculate it. Hook the pane resize event, figure the pane % based on window pixel sizing and set the pane size

If I recall there is a PR for an formal implementaiton, you want to pick it up.

orefalo avatar Aug 30 '24 04:08 orefalo