fix: MinWidth not work while manually resizing window (#619)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-10-29 19:59:22 +08:00
parent ee20eba047
commit 5c92fbdb37
No known key found for this signature in database
4 changed files with 30 additions and 2 deletions

View file

@ -8,7 +8,7 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="600"
x:Class="SourceGit.Views.WorkingCopy"
x:DataType="vm:WorkingCopy">
<Grid>
<Grid SizeChanged="OnMainLayoutSizeChanged">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding Source={x:Static vm:Preference.Instance}, Path=Layout.WorkingCopyLeftWidth, Mode=TwoWay}" MinWidth="300"/>
<ColumnDefinition Width="5"/>