From 0881540b106baf08302a4149273b523315f2f884 Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 7 Dec 2015 20:35:49 +0000 Subject: [PATCH] Fixed groups not resizing properly --- DarkUI/DarkUI.csproj | 1 - DarkUI/Docking/DarkDockRegion.cs | 11 +++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/DarkUI/DarkUI.csproj b/DarkUI/DarkUI.csproj index b0bd3eb..a88243f 100644 --- a/DarkUI/DarkUI.csproj +++ b/DarkUI/DarkUI.csproj @@ -135,7 +135,6 @@ Form - True True diff --git a/DarkUI/Docking/DarkDockRegion.cs b/DarkUI/Docking/DarkDockRegion.cs index ddb106b..52d64f1 100644 --- a/DarkUI/Docking/DarkDockRegion.cs +++ b/DarkUI/Docking/DarkDockRegion.cs @@ -254,10 +254,15 @@ namespace DarkUI.Docking _parentForm.ResizeEnd += ParentForm_ResizeEnd; } + protected override void OnResize(EventArgs eventargs) + { + base.OnResize(eventargs); + + SizeGroups(); + } + private void ParentForm_ResizeEnd(object sender, EventArgs e) { - SizeGroups(); - if (_splitter != null) _splitter.UpdateBounds(); } @@ -266,8 +271,6 @@ namespace DarkUI.Docking { base.OnLayout(e); - SizeGroups(); - if (_splitter != null) _splitter.UpdateBounds(); }