Fixed groups not resizing properly

This commit is contained in:
Robin 2015-12-07 20:35:49 +00:00
parent cdaeae5264
commit 0881540b10
2 changed files with 7 additions and 5 deletions

View File

@ -135,7 +135,6 @@
<Compile Include="Forms\DarkTranslucentForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Enums.cs" />
<Compile Include="Icons\DockIcons.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>

View File

@ -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();
}