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"> <Compile Include="Forms\DarkTranslucentForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="Forms\Enums.cs" />
<Compile Include="Icons\DockIcons.Designer.cs"> <Compile Include="Icons\DockIcons.Designer.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>

View File

@ -254,10 +254,15 @@ namespace DarkUI.Docking
_parentForm.ResizeEnd += ParentForm_ResizeEnd; _parentForm.ResizeEnd += ParentForm_ResizeEnd;
} }
protected override void OnResize(EventArgs eventargs)
{
base.OnResize(eventargs);
SizeGroups();
}
private void ParentForm_ResizeEnd(object sender, EventArgs e) private void ParentForm_ResizeEnd(object sender, EventArgs e)
{ {
SizeGroups();
if (_splitter != null) if (_splitter != null)
_splitter.UpdateBounds(); _splitter.UpdateBounds();
} }
@ -266,8 +271,6 @@ namespace DarkUI.Docking
{ {
base.OnLayout(e); base.OnLayout(e);
SizeGroups();
if (_splitter != null) if (_splitter != null)
_splitter.UpdateBounds(); _splitter.UpdateBounds();
} }