diff --git a/SunnyUI/Forms/UIForm.cs b/SunnyUI/Forms/UIForm.cs index af17d6fe..c1efcabe 100644 --- a/SunnyUI/Forms/UIForm.cs +++ b/SunnyUI/Forms/UIForm.cs @@ -587,7 +587,11 @@ namespace Sunny.UI { ExtendBoxRect = new Rectangle(ControlBoxRect.Left - 28 - 2, ControlBoxRect.Top, 28, 28); } + + ControlBoxLeft = ExtendBoxRect.Left - 2; } + + if (ControlBoxLeft != Width) ControlBoxLeft -= 6; } else { diff --git a/SunnyUI/Forms/UIForm2.cs b/SunnyUI/Forms/UIForm2.cs index cb46b8b2..16136c63 100644 --- a/SunnyUI/Forms/UIForm2.cs +++ b/SunnyUI/Forms/UIForm2.cs @@ -613,6 +613,8 @@ namespace Sunny.UI ControlBoxLeft = ExtendBoxRect.Left - 2; } + + if (ControlBoxLeft != Width) ControlBoxLeft -= 6; } else {