diff options
author | sr55 <[email protected]> | 2017-12-12 21:53:08 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2017-12-12 21:53:08 +0000 |
commit | d37c6cbf04d2708790f5bdf722bba3f9f3ca605a (patch) | |
tree | 55496b4f299f1787287a83eecd93d4587141ef94 /win | |
parent | 02bb7c53bf68e0ba64ccd221b3435b444abb744b (diff) |
WinGui: Couple of layout and control size tweaks on the main screen to accommodate the legacy preset panel.
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml | 5 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/ShellView.xaml | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index 2bb8a6746..a783b126a 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -512,6 +512,7 @@ VerticalAlignment="Stretch"
Header="Presets"
Margin="0,0,5,5"
+ MaxWidth="270"
IsEnabled="{Binding HasSource, Converter={StaticResource booleanConverter}, ConverterParameter=false}"
Visibility="{Binding IsPresetPanelShowing, Converter={StaticResource boolToVisConverter}}">
@@ -541,7 +542,7 @@ </Style.Triggers>
</Style>
</StackPanel.Resources>
- <TextBlock Text="{Binding Name}"/>
+ <TextBlock Text="{Binding Name}" TextTrimming="CharacterEllipsis" />
</StackPanel>
</HierarchicalDataTemplate>
@@ -554,7 +555,7 @@ <TreeView x:Name="presetListTree" HorizontalAlignment="Stretch" AutomationProperties.Name="Presets List" ToolTip="{x:Static Properties:ResourcesTooltips.MainView_Presets}"
VerticalAlignment="Stretch" BorderThickness="0,0,0,1" BorderBrush="LightGray"
- ItemsSource="{Binding PresetsCategories}"
+ ItemsSource="{Binding PresetsCategories}" MaxWidth="265"
helpers:TreeViewHelper.TreeViewSelectedItem="{Binding Path=SelectedPreset, Mode=TwoWay}"
PreviewMouseRightButtonDown="PresetListTree_OnPreviewMouseRightButtonDown">
diff --git a/win/CS/HandBrakeWPF/Views/ShellView.xaml b/win/CS/HandBrakeWPF/Views/ShellView.xaml index 0f31986c4..e0455b3d3 100644 --- a/win/CS/HandBrakeWPF/Views/ShellView.xaml +++ b/win/CS/HandBrakeWPF/Views/ShellView.xaml @@ -8,7 +8,7 @@ Title="{Data:Binding Path=MainViewModel.WindowTitle}"
Width="1015"
Height="675"
- MinWidth="900"
+ MinWidth="1015"
MinHeight="675"
AllowDrop="True"
SnapsToDevicePixels="True"
|