#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)
Change History (5)
Changed 12 years ago by
Attachment: | tab_test_width.html added |
---|
comment:2 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Basically a dup of #10495. You need to specify a width on your TabContainer, or controllerWidget=""dijit.layout.TabController"
.
comment:3 Changed 12 years ago by
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 12 years ago by
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.
Test case demonstrating width behavior