-
Notifications
You must be signed in to change notification settings - Fork 415
Open
Description
Hey! Great project, I've used it for years on my project here. Terrific to see the recent updates, I'm just updating to v3 now.
A couple of feature requests around persistence:
- option for usePersistence() to store the horizontal/vertical layouts independently. I hoped that by supplying a different
key, it would do that - but I'm finding that the values are used for both. - accommodate different browser dimensions when loading the sizes from usePersistence state; i.e. recalculate the values on first load to adjust the relative sizes. I'm finding that in certain scenarios (e.g. saving the dimensions with a large browser, closing the page and re-opening with a much smaller browser window) the persisted values are quite inaccurate and cause the panels to be initially incorrectly placed. Perhaps storing all the values in relative percentage values? Or having an upfront recalculation on first render. Not sure.
I can work around both of these with a controlled component and doing a little math on my end, but it'd be nice for it to handle it all out the box.
Anyway, thanks again - great project.
tomkp
Metadata
Metadata
Assignees
Labels
No labels