Opened 14 years ago

Last modified 13 years ago

#5821 closed defect

TabContainer - Visual problem when creating tab programmatically (both FF and IE) — at Version 3

Reported by: guest Owned by: Adam Peller
Priority: high Milestone: 1.2
Component: Dijit Version: 1.0
Keywords: TabContainer Cc:
Blocked By: Blocking:

Description (last modified by Adam Peller)

I'm having a problem with TabContainer? when I add a new "tabs" created programmatically. I attach my test HTML page (derived from official Dojo test_TabContainer.html file). It creates an empty TabContainer? declaratively and then in dojo.addOnLoad() I create one tab programmatically.

Everything works fine except that initially when TabContainer? is displayed, the tab created programmatically is not properly resized - see attached tab-FF-1.png (FireFox?) and tab-IE-1.png (MSIE). When I slightly resize the browser's window, the tab is properly resized and fitted into TabContainer? - see attached screenshot tab-FF-2.png and tab-IE-2.png. It works almost identically in both FF 2.0.0.11 and IE 6 (both tested on Win XP).

I tested this with Dojo 1.0.2.

Change History (8)

Changed 14 years ago by guest

Attachment: tab-FF-1.png added

Changed 14 years ago by guest

Attachment: tab-FF-2.png added

Changed 14 years ago by guest

Attachment: tab-IE-1.png added

Changed 14 years ago by guest

Attachment: tab-IE-2.png added

Changed 14 years ago by guest

Attachment: test_TabContainer_test.html added

Test HTML page

comment:1 Changed 14 years ago by dante

Resolution: worksforme
Status: newclosed

i've just tested this in trunk, and it works for me? adding tc.layout() in the addOnLoad after addChild(cp) fixes.

comment:2 Changed 14 years ago by bill

Milestone: 1.2
Resolution: worksforme
Status: closedreopened

OK, but shouldn't need to call layout() after addChild(). startup() on child widget should happen automatically if the parent is already started. Problem in StackContainer??

comment:3 Changed 14 years ago by Adam Peller

Description: modified (diff)
Owner: set to Adam Peller
Status: reopenednew
Note: See TracTickets for help on using tickets.