TabContainer with Custom widgets as ContentPlanes Problem

View: New views
1 Messages — Rating Filter:   Alert me  

TabContainer with Custom widgets as ContentPlanes Problem

by Achim-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I looked around and spent already a day on this problem... I need some advice!

I have a custom TabContainer:

dojo.declare("t3dojo_basicapp.DynamicTabContentPlane",
    [dijit.layout.TabContainer],

When my script opens a Tab with some template file as url in href inside the tab all the containing widgets are rendered correctly. (I guess it has to do that I select the child tab before the href is loaded and rendered)

now comes the problem: If I create a custom templated widget (derived from ContentPlane) with this code. They are initially not rendered correctly. After resizing the browser the widget is rendered OK.

        tempTab = new zhdojo.dbforms.MainCharForm({title: strTitle, closable: true});
        this.oDynabicTabController.addChild(tempTab);
        this.oDynabicTabController.selectChild(tempTab);

What tried a lot : calling resize() or layout() of the TabController etc. Nothing helped.

My guess is, that since the tempTab is not visible when it is added to the TapController it is not rendered. - But I don't find how to make my custom widget render correctly.

Any help is much apprechiated!

Greetings - Achim

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest