-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
fix: Disallow and ignore x and y attributes for blocks in toolbox definitions. #8785
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed the positioning logic needs no change after this; it assumes items are initially at (0, 0) and moves them relative to that point, which was problematic when they were starting at not-(0, 0) due to the x and y properties being respected, but is no longer an issue.
Thanks @gonfunko. Just had one suggestion on clarifying a comment for clearer context, otherwise the PR LGTM. |
The basics
The details
Resolves
Fixes #6280
Proposed Changes
This PR removes
x
andy
fromBlockInfo
, and removes them if set before loading and laying out blocks in a flyout. Previously, these would cause blocks to be positioned incorrectly in the flyout, since the flyout repositions its contents relative to one another but assumes their initial origin is (0, 0). The XML codepath was not subject to this issue.