milahu / solidjs-resizable-splitter-component

resizable splitter component for SolidJS
https://milahu.github.io/solidjs-resizable-splitter-component/
MIT License
5 stars 2 forks source link

fix resize. neighbor items should not move #12

Open milahu opened 2 years ago

milahu commented 2 years ago

currently, the neighbor items move because we use display:flex and all sizes are relative, for example flex-basis:50%

solution: for resizing, convert the container to display:block and resize with absolute sizes in pixels

after resize, convert the container back to display:flex

similar issue as https://github.com/milahu/svelte-layout-resizable/issues/5