mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
ux: limit the minimal width/height of resizable panels (#619)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
acd61f49a8
commit
ee20eba047
3 changed files with 6 additions and 6 deletions
|
@ -12,15 +12,15 @@
|
|||
x:Name="ThisControl">
|
||||
<v:LayoutableGrid UseHorizontal="{Binding Source={x:Static vm:Preference.Instance}, Path=UseTwoColumnsLayoutInHistories}">
|
||||
<v:LayoutableGrid.RowDefinitions>
|
||||
<RowDefinition Height="{Binding TopArea, Mode=TwoWay}"/>
|
||||
<RowDefinition Height="{Binding TopArea, Mode=TwoWay}" MinHeight="100"/>
|
||||
<RowDefinition Height="3"/>
|
||||
<RowDefinition Height="{Binding BottomArea, Mode=TwoWay}"/>
|
||||
<RowDefinition Height="{Binding BottomArea, Mode=TwoWay}" MinHeight="200"/>
|
||||
</v:LayoutableGrid.RowDefinitions>
|
||||
|
||||
<v:LayoutableGrid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="{Binding LeftArea, Mode=TwoWay}"/>
|
||||
<ColumnDefinition Width="{Binding LeftArea, Mode=TwoWay}" MinWidth="100"/>
|
||||
<ColumnDefinition Width="3"/>
|
||||
<ColumnDefinition Width="{Binding RightArea, Mode=TwoWay}"/>
|
||||
<ColumnDefinition Width="{Binding RightArea, Mode=TwoWay}" MinWidth="100"/>
|
||||
</v:LayoutableGrid.ColumnDefinitions>
|
||||
|
||||
<Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="{Binding Source={x:Static vm:Preference.Instance}, Path=Layout.StashesLeftWidth, Mode=TwoWay}" MinWidth="300"/>
|
||||
<ColumnDefinition Width="4"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*" MinWidth="300"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- Left -->
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="{Binding Source={x:Static vm:Preference.Instance}, Path=Layout.WorkingCopyLeftWidth, Mode=TwoWay}" MinWidth="300"/>
|
||||
<ColumnDefinition Width="5"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*" MinWidth="300"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- Left -->
|
||||
|
|
Loading…
Reference in a new issue