Approved
Last Updated: 07 Apr 2016 13:55 by ADMIN
ADMIN
Nikolay
Created on: 23 Jun 2010 12:36
Category: PageView
Type: Bug Report
2
FIX. RadDock - RadTabStrip does not get a proper size under specific circumstances and in Windows 2008 Server environment
Under specific circumstances and in Windows 2008 Server environment the RadTabStrip internally used in RadDock does not get a proper size.

Workaround:
bool performLayout = false;
  
protected override void OnSizeChanged(EventArgs e)
{
    base.OnSizeChanged(e);
  
    if (this.WindowState == FormWindowState.Minimized)
    {
        this.performLayout = true;
    }
  
    else if (this.performLayout)
    {
        //reset padding to force bounds update
        this.Padding = new Padding(1);
        this.Padding = Padding.Empty;
        this.performLayout = false;
    }
}

Basically, you need to override the OnSizeChanged method of the main form and first set and then reset its Padding when the it goes from Minimized to another state. This will trigger that internal layout mechanisms of our controls and you will get the RadGridView shown as expected.
0 comments