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-4304-ContextMenu-Direction #13624

Merged
merged 1 commit into from
Dec 10, 2022
Merged

DYN-4304-ContextMenu-Direction #13624

merged 1 commit into from
Dec 10, 2022

Conversation

RobertGlobant20
Copy link
Contributor

Purpose

Fixing Dynamo Popup Directions
When showing the NotificationsCenter popup and the Windows10 Handedness is Right-handed then the popup was shown in the wrong location then I implemented a fix that will be setting temporally the field _menuDropAlignment (this one modifies the Handedness) so in this way if the Handedness is Right-handed we will be setting this to Left-handed and the popup will be displayed in the right direction.

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

Release Notes

Fixing Dynamo Popup Directions

Reviewers

@QilongTang

FYIs

When showing the NotificationsCenter popup and the Windows10 Handedness is Right-handed then the popup was shown in the wrong location then I implemented a fix that will be setting temporally the field _menuDropAlignment (this one modifies the Handedness) so in this way if the Handedness is Right-handed we will be setting this to Left-handed and the popup will be displayed in the right direction.
@RobertGlobant20
Copy link
Contributor Author

RobertGlobant20 commented Dec 9, 2022

GIF showing the bug, then the Popup is shown in the wrong position (Handedness = Right-handed).
NotificationCenterPopupHandenessBug

@RobertGlobant20
Copy link
Contributor Author

GIF showing the popup location after the fix (Dynamo starts with Handedness = Right-handed but later is change temporally).
NotificationCenterPopupHandeness

@QilongTang QilongTang merged commit a62d402 into DynamoDS:master Dec 10, 2022
@QilongTang QilongTang deleted the DYN-4304-ContextMenu-Direction branch December 10, 2022 02:19
{
var t = typeof(SystemParameters);
var field = t.GetField("_menuDropAlignment", BindingFlags.NonPublic | BindingFlags.Static);
field.SetValue(null, false); //Set the field to Left-handed(false)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this something that will be serialized or is only a temporary setting?

QilongTang pushed a commit that referenced this pull request Dec 13, 2022
When showing the NotificationsCenter popup and the Windows10 Handedness is Right-handed then the popup was shown in the wrong location then I implemented a fix that will be setting temporally the field _menuDropAlignment (this one modifies the Handedness) so in this way if the Handedness is Right-handed we will be setting this to Left-handed and the popup will be displayed in the right direction.
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.

2 participants