Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#9849 closed defect (worksforme)

Latest TabContainer not displaying correctly

Reported by: steven3311 Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.3.2
Keywords: Tabcontainer, displaying, resize Cc:
Blocked By: Blocking:

Description

I have just checked out the latest nightly build and the Tabcontainer is not displaying tabs initially. I have to resize the browser for them to show up. I tried to setting doLayout to false and it still does the same thing. *note: All tabs are added dynamically and the tabcontainer is hidden initially.

Change History (8)

comment:1 in reply to:  description Changed 10 years ago by steven3311

Replying to steven3311:

I found a workaround. I have to manually call resize after I show the Tabcontainer. Seems like resize should be called automatically.

comment:2 Changed 10 years ago by bill

It works for me, without calling resize(): http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/layout/test_TabContainer.html

Do you have a test case? If so, please attach using the attach file button.

comment:3 in reply to:  2 Changed 10 years ago by steven3311

Replying to bill:

It works for me, without calling resize(): http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/layout/test_TabContainer.html

Do you have a test case? If so, please attach using the attach file button.

It would be very difficult for me to upload my code. I dont have a seperate testcase. But I did get it to work. My new issue is that when I display my tabcontainer via wipein it displays for a sec and dissapears. It only stays shown when I set doLayout to false but then the tabs do not display correctly.

comment:4 Changed 10 years ago by bill

Resolution: worksforme
Status: newclosed

Hmm, OK.

Well, for your new issue, I imagine it's that the TabContainer is being sized either when it's hidden or during the wipe-in process, when the height/width is all wrong. Not sure exactly what your code is or why that would be happening.

Anyway, I'm going to close this ticket since unfortunately can't work on a problem without a test case.

comment:5 in reply to:  4 Changed 10 years ago by steven3311

Replying to bill:

Ok thats fine. I am sizing the tabcontainer before it is hidden but adding content to it while it is hidden. Do you think that could be the issue?

comment:6 Changed 10 years ago by bill

Hmm, well I assume by hidden you mean display:none, as visibility: hidden shouldn't have any issues.

Adding the content must be triggering a resize.

comment:7 in reply to:  6 Changed 10 years ago by steven3311

Replying to bill:

My solution to this was to use wipeTo instead of wipeIn, I also set doLayout to false. I still have to call resize after calling wipeTo so that the tablist can be displayed. I think I will try and come up with a test case to upload. Another thing to keep in mind is that everything is created dynamically.

comment:8 Changed 10 years ago by bill

OK, if you have a test case please upload here then reopen the ticket, or if you don't have permission to reopen tickets then just write a comment here and I'll reopen.

Note: See TracTickets for help on using tickets.