This project has moved. For the latest updates, please go here.


XtraTabWorkspace size is wrong


When you add a smartPart in a XtraTabWorkspace, the smartPart is filled in the Tab but not appears correctly.
In the GetOrCreateTabPage function of the XtraTabWorkspace you add the smartPart on the controls Collection of the XtraTabPage.
By default a new XtraTabPage has the size (0x0). The smartPart take this default size and is Filled.
It seems that the smartPart is not redraw correctly when the XtraTabPage is filled on his XtraTabWorkspace parent.
To resolve this bug, we have define a new default size to XtraTabPage what is different to (0x0).
Exemple :
private XtraTabPage GetOrCreateTabPage(Control smartPart)
        XtraTabPage page = null;
        // If the tab was added with the control at design-time, it will have a parent control, 
        // and somewhere up its containment chain we'll find one of our tabs
        Control current = smartPart;
        while (current != null && page == null)
            current = current.Parent;
            page = current as XtraTabPage;
        if (page == null)
            page = new XtraTabPage();
            page.ClientSize = this.ClientSize;
            smartPart.Dock = DockStyle.Fill;
            page.Name = Guid.NewGuid().ToString();
            pages.Add(smartPart, page);
        else if (pages.ContainsKey(smartPart) == false)
            pages.Add(smartPart, page);
        return page;
Closed Apr 4, 2009 at 5:32 AM by DevLynx
Fixed in change set 24395