orefalo / svelte-splitpanes

MIT License
360 stars 17 forks source link

Set fixed size in px/rem? #99

Open reformstudios opened 3 weeks ago

reformstudios commented 3 weeks ago

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?

orefalo commented 2 weeks ago

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.