mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
Fix auto-scaling of CalculationResult when the current locale displays symbols at the right
This commit is contained in:
parent
c6b770eec8
commit
a98628261d
2 changed files with 6 additions and 7 deletions
|
@ -487,6 +487,7 @@
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock x:Name="CurrencySymbol1Block"
|
<TextBlock x:Name="CurrencySymbol1Block"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
|
@ -541,6 +542,7 @@
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock x:Name="CurrencySymbol2Block"
|
<TextBlock x:Name="CurrencySymbol2Block"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
// UnitConverter.xaml.cpp
|
// UnitConverter.xaml.cpp
|
||||||
|
@ -66,11 +66,8 @@ UnitConverter::UnitConverter() :
|
||||||
if (preferRight)
|
if (preferRight)
|
||||||
{
|
{
|
||||||
// Currency symbol should appear on the right. Reverse the order of children.
|
// Currency symbol should appear on the right. Reverse the order of children.
|
||||||
Grid::SetColumn(Value1, 0);
|
Grid::SetColumn(CurrencySymbol1Block, 2);
|
||||||
Grid::SetColumn(CurrencySymbol1Block, 1);
|
Grid::SetColumn(CurrencySymbol2Block, 2);
|
||||||
|
|
||||||
Grid::SetColumn(Value2, 0);
|
|
||||||
Grid::SetColumn(CurrencySymbol2Block, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto userSettings = ref new UISettings();
|
auto userSettings = ref new UISettings();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue