Skip to content

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

Merged
danbelcher-MSFT merged 4 commits intomicrosoft:masterfrom
rudyhuyn:UnitRTL
Apr 20, 2019
Merged

Fix #409 and #59 - UI issues with UnitConverter in RtL#410
danbelcher-MSFT merged 4 commits intomicrosoft:masterfrom
rudyhuyn:UnitRTL

Conversation

@rudyhuyn
Copy link
Copy Markdown
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
Copy Markdown

@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

Development

Successfully merging this pull request may close these issues.

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

3 participants