-
Notifications
You must be signed in to change notification settings - Fork 635
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
DYN-4449 Undo in group casues weird visual artifacts #15067
DYN-4449 Undo in group casues weird visual artifacts #15067
Conversation
connectors in groups remain collapsed on undo
Will check the fail tomorrow morning.... |
second PR attempt
UI Smoke TestsTest: success. 2 passed, 0 failed. |
All looks okay now |
/// Consequently, if a group is collapsed and then moved, performing an Undo operation will not restore | ||
/// the connector to its state at the time the move was recorded. | ||
/// </summary> | ||
private void SetCollapsedByNodeViewModel() |
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.
it seems like you could write a unit test for the Redraw method that makes sure IsCollapsed is true when it should be.
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.
Okay
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.
please see the test included. hope that's okay.
Purpose
Undo in group causes weird visual artifacts. On undo connectors will be visible even though the group that they are in is collapsed. I added a method that that is executed on Redrawn and evaluates whether both nodes associated with connector are collapsed, if so, collapses the connector itself.
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Connectors are only recorded in the Undo stack when they are connected. Consequently, if a group is collapsed and then moved, performing an Undo operation will not restore the connector to its state at the time the move was recorded. The new method evaluates whether both nodes associated with a connector are collapsed, if so, collapses the connector itself.
Reviewers
@dnenov
@reddyashish
FYIs
@Amoursol