protected override void OnLayout(LayoutEventArgs levent)
{
this.SetIsHidden(this.DisplayingContents.Count == 0);
if (!this.IsHidden)
{
this.CaptionControl.Bounds = this.CaptionRectangle;
this.TabStripControl.Bounds = this.TabStripRectangle;
this.SetContentBounds();
foreach (IDockContent content in this.Contents)
{
if (this.DisplayingContents.Contains(content))
if (content.DockHandler.FlagClipWindow && content.DockHandler.Form.Visible)
content.DockHandler.FlagClipWindow = false;
}
}
base.OnLayout(levent);
}