Skip to content
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-5018 Collapsed group moving fix #13073

Merged

Conversation

filipeotero
Copy link
Contributor

Purpose

This PR is to fix the bug when the user moves a collapsed group horizontally.
The issue was occurring because of an unusual change in the width value. To fix that was created a variable to keep the previous value of the group's width when collapsed.

wirebug

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated

Reviewers

@QilongTang @pinzart

@QilongTang QilongTang added this to the 2.16.0 milestone Jun 29, 2022
@QilongTang
Copy link
Contributor

Is there a Jira task linked or just a bug you found?

@filipeotero
Copy link
Contributor Author

Is there a Jira task linked or just a bug you found?

It's a bug that Aabi found related to the task DYN-5018

else
{
//If the annotation is not expanded, than it will remain the same width of the last time it was expanded
Width = lastExpandedWidth;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would there be any edge case that the new width should not be set to last expanded width?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking about it, maybe no edge case since we currently disable adding new elements into group when it is collapsed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right, the width will be the same when the group is collapsed.

}
else
{
//If the annotation is not expanded, than it will remain the same width of the last time it was expanded
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

than -> then
expanded, then it will

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whops, thanks!

Copy link
Contributor

@QilongTang QilongTang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once comments addressed

@QilongTang QilongTang merged commit d581380 into DynamoDS:master Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants