From 34c6c953ac9bad9292b24d4a898b4f28796da7c9 Mon Sep 17 00:00:00 2001 From: crazypeace Date: Sat, 9 Sep 2023 15:59:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E8=99=91=E5=9C=A8=E6=9B=B4=E5=A4=A7?= =?UTF-8?q?=E7=9A=84=E5=B1=8F=E5=B9=95=E4=B8=8A=E5=8F=AF=E4=BB=A5=E6=8E=A5?= =?UTF-8?q?=E5=8F=97=E6=9B=B4=E9=AB=98=E5=B0=BA=E5=AF=B8=E7=9A=84=E5=8D=A0?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://zelikk.blogspot.com/2023/09/v2rayn-lstgroup-maxheight.html --- v2rayN/v2rayN/Views/MainWindow.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) 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;