Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#11152 closed defect (duplicate)

Extreme tab widths in 1.4 with doLayout="false"

Reported by: Josh Trutwin Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.4.2
Keywords: tab width Cc:
Blocked By: Blocking:

Description

I've noticed some problems since upgrading from 1.3 to 1.4 in tab containers where the tab width gets calculated to something crazy like 50k pixels. I'm attaching a simple test case that demonstrates this behavior (tested in FF3/ie8). There seems to be a problem with the <table> content around the <div>'s - if I remove that the width is better. Unfortunately removing table tags around our tab containers is not an option.

With the table tabs as shown in the test case, the width is set to 50406px:

<div style="visibility: visible; width: 50406px; height: 28px;" class="dijitTabListContainer-top tabStrip-disabled dijitLayoutContainer" id="templates_tab_container_tablist" widgetid="templates_tab_container_tablist" role="tablist">

Thanks!

Attachments (1)

tab_test_width.html (2.3 KB) - added by Josh Trutwin 9 years ago.
Test case demonstrating width behavior

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by Josh Trutwin

Attachment: tab_test_width.html added

Test case demonstrating width behavior

comment:1 Changed 9 years ago by Josh Trutwin

Also tried the test file with fresh trunk checkout - no change

comment:2 Changed 9 years ago by bill

Resolution: duplicate
Status: newclosed

Basically a dup of #10495. You need to specify a width on your TabContainer, or controllerWidget=""dijit.layout.TabController".

comment:3 Changed 9 years ago by Josh Trutwin

Ok thanks for the pointer Bill, added the extra param - It's a little unfortunate that valid (??) HTML causes this odd behavior, would it be possible to not have the tab container width be capped at the viewport size if the user does not specify a tab container width?

comment:4 Changed 9 years ago by bill

I didn't see any way to do it back when I closed #10113, but retchless says he has a solution so I'll try that.

Note: See TracTickets for help on using tickets.