Skip to content

Commit

Permalink
Merge pull request 2dust#4255 from crazypeace/master
Browse files Browse the repository at this point in the history
解决当订阅数量较多时,占用窗口空间太大的问题
  • Loading branch information
2dust authored Sep 22, 2023
2 parents 521ce1a + 34c6c95 commit 5284005
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion v2rayN/v2rayN/Views/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@
x:Name="lstGroup"
FontSize="{DynamicResource StdFontSize}"
ItemContainerStyle="{StaticResource MyChipListBoxItem}"
Style="{StaticResource MaterialDesignChoiceChipPrimaryOutlineListBox}">
Style="{StaticResource MaterialDesignChoiceChipPrimaryOutlineListBox}" MaxHeight="120">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding remarks}" />
Expand Down
2 changes: 2 additions & 0 deletions v2rayN/v2rayN/Views/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public MainWindow()
this.Height = SystemParameters.WorkArea.Height;
}

lstGroup.MaxHeight = Math.Floor(SystemParameters.WorkArea.Height * 0.20 / 40) * 40;

_config = LazyConfig.Instance.GetConfig();

App.Current.SessionEnding += Current_SessionEnding;
Expand Down

0 comments on commit 5284005

Please sign in to comment.