-
Notifications
You must be signed in to change notification settings - Fork 179
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
Element ratio lock and padding lock not persistent #1024
Comments
/cc @miina |
I wonder if this is something that should this be persistent between reloads as well e.g. as in #825? Or would this be per element persistent until the editor is reloaded? |
I think the padding specifically is more of a function of the current values. If |
/cc @pbakaus it looks like my suggestion was a bad one. What do we want then here? Do we want lock state to be persisted in the data model? Or just always start on/off? |
@dvoytenko just for posterity, the answer is we persist. |
@pbakaus @dvoytenko We need to confirm the behavior when multiple elements selected. @dvoytenko suggested that we need to have separate calculation on each element lock ratio value. |
I also chimed in on the other thread and for posterity: I think both options are very possible. But I actually leaning toward your initial intuition now, and use the common lock ratio. What's most important though: whichever way we go, we should stay consistent. So, assuming a multiple selection with different lock rations and changing the width, I see two options:
This way we preserve the consistency. The width, height, and lock are all as they were last updated. And again, I'm leaning to the second option at this time. |
Bug Description
When I unselect an element and select it again (or reload the editor), I notice that the lock is enabled again.
Expected Behaviour
When I disable padding lock, I expect this to be a persistent setting.
When I disable aspect ratio lock, I expect this to be a persistent setting.
Steps to Reproduce
Screenshots
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria
QA Instructions
The text was updated successfully, but these errors were encountered: