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

Fix #409 and #59 - UI issues with UnitConverter in RtL #410

Merged
merged 4 commits into from
Apr 20, 2019
Merged

Fix #409 and #59 - UI issues with UnitConverter in RtL #410

merged 4 commits into from
Apr 20, 2019

Conversation

rudyhuyn
Copy link
Contributor

@rudyhuyn rudyhuyn commented Mar 29, 2019

Fix #409 - Some content in Currency Converter not right-aligned properly in RtL
Fix #59 Currency symbol precedence is opposite of system setting in RTL languages

Description of the changes:

  • Add a property FlowDirectionHorizontalAlignment in UnitConverter to align some controls to the right (without modifying the FlowDirection of their parent items)
  • Force FlowDirection of Value1Container and Value2Container to LeftToRight (but align panels to the right)

How changes were validated:

  • Tested with LtR and RtL languages and with currency symbols on the left and on the right.

Screenshots:

LtR with currency symbol on the left
image

LtR with currency symbol on the right
image

RtL with currency symbol on the left
image

RtL with currency symbol on the right
image

…rly in RtL

Fix #59 Currency symbol precedence is opposite of system setting in RTL languages
Copy link

@danbelcher-MSFT danbelcher-MSFT left a comment

Choose a reason for hiding this comment

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

Users of intl.cpl will appreciate this :) Thanks, Rudy!

@danbelcher-MSFT danbelcher-MSFT merged commit 0d31d5a into microsoft:master Apr 20, 2019
EriWong pushed a commit to EriWong/calculator that referenced this pull request Jun 5, 2019
Fix microsoft#409 - Some content in Currency Converter not right-aligned properly in RtL
Fix microsoft#59 Currency symbol precedence is opposite of system setting in RTL languages

Description of the changes:
Add a property FlowDirectionHorizontalAlignment in UnitConverter to align some controls to the right (without modifying the FlowDirection of their parent items)
Force FlowDirection of Value1Container and Value2Container to LeftToRight (but align panels to the right)

How changes were validated:
Tested with LtR and RtL languages and with currency symbols on the left and on the right.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants