-
-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
260 recalcresize #261
260 recalcresize #261
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Of course the "should store layouts separately per panel combination" is exactly what im trying to remove so the tests would then not be valid. |
Thank you for the PR! This functionality is working as designed though, for reasons I explained in #260. Thanks for your understnding. |
I'm going to re-open this so that I can give it some thought later, but it's not a super high priority for me and I'm not committing to making any changes at this point. |
I will still give the proposal you made some consideration, but I don't think I'll go with the change proposed in this branch. It results in unstable sizes. Compare the behavior of the latest release... Kapture.2024-01-12.at.18.58.12.mp4To the behavior in this branch... Kapture.2024-01-12.at.18.59.07.mp4Going to close this for now. |
This PR is created as a discussion/demo to describe #260
The PR flattens the panel group state
From
To
storing each layout state in a hash
The layouts are then always taken from that hash so a baseline is provided when calculating the new state.
When then removing a panel the state might me [33, 33] but that will be recalculated.
This is a naive implementation, i have not checked all other use-cases, for example what happends if you drag-n-drop / reorder components then this might have to be revisited.