diff --git a/v2rayN/v2rayN/Views/MainWindow.xaml b/v2rayN/v2rayN/Views/MainWindow.xaml index 1e731078..9ae651d9 100644 --- a/v2rayN/v2rayN/Views/MainWindow.xaml +++ b/v2rayN/v2rayN/Views/MainWindow.xaml @@ -386,7 +386,7 @@ x:Name="lstGroup" FontSize="{DynamicResource StdFontSize}" ItemContainerStyle="{StaticResource MyChipListBoxItem}" - Style="{StaticResource MaterialDesignChoiceChipPrimaryOutlineListBox}"> + Style="{StaticResource MaterialDesignChoiceChipPrimaryOutlineListBox}" MaxHeight="120"> diff --git a/v2rayN/v2rayN/Views/MainWindow.xaml.cs b/v2rayN/v2rayN/Views/MainWindow.xaml.cs index 9ff4bea0..b7ea9afb 100644 --- a/v2rayN/v2rayN/Views/MainWindow.xaml.cs +++ b/v2rayN/v2rayN/Views/MainWindow.xaml.cs @@ -36,6 +36,8 @@ namespace v2rayN.Views 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;