From e0e97e2e5428dd67ae701788786f71fd2f26efdb Mon Sep 17 00:00:00 2001 From: Sunny Date: Tue, 6 Dec 2022 15:58:43 +0800 Subject: [PATCH] =?UTF-8?q?*=20UISplitContainer:=20=E5=8E=BB=E6=8E=89Split?= =?UTF-8?q?terWidth=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/UISplitContainer.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SunnyUI/Controls/UISplitContainer.cs b/SunnyUI/Controls/UISplitContainer.cs index 64d21ead..12c200f0 100644 --- a/SunnyUI/Controls/UISplitContainer.cs +++ b/SunnyUI/Controls/UISplitContainer.cs @@ -19,6 +19,7 @@ * 2021-10-30: V3.0.8 增加文件说明 * 2022-04-03: V3.1.3 增加主题样式 * 2022-04-20: V3.1.5 修复调用Collapse()后,展开/收回操作失效 + * 2022-12-06: V3.3.0 去掉SplitterWidth限制 ******************************************************************************/ using System; using System.ComponentModel; @@ -75,7 +76,7 @@ namespace Sunny.UI ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true); _lastDistance = SplitterDistance; - SplitterWidth = 10; + base.SplitterWidth = 11; MinimumSize = new Size(20, 20); Version = UIGlobal.Version; } @@ -374,7 +375,7 @@ namespace Sunny.UI return; } - if (SplitterWidth < 11) SplitterWidth = 11; + //if (SplitterWidth < 11) SplitterWidth = 11; Rectangle arrowRect = CalcArrowRect(CollapseRect); Color handleRectColor = _uiControlState == UIControlState.Hover ? handleHoverColor : HandleColor;