View Full Version : [FIXED-761] Tabstrip resize error when no tabs

22 Mar 2010, 1:51 AM
B]Ext version tested:[/B]

Ext 3.1____ rev 1____

Adapter used:


css used:

only default ext-all.css

Browser versions tested against:


Operating System:

Windows Vista


When I resize a tabPanel, the resize of the tabstrip fails under certain conditions. If I make my viewport larger, the background color of the tabstrip remains the origininal size. This happens when:
* enableTabScroll is true
* all Tabs are close (i.e. the tabPanel does not show any tab)

Steps to reproduce the problem:

Close all tabs on a tabpanel
enlarge tabPanel

Possible fix:

If I add the code marked as MY FIX, the problem disappears:

autoScrollTabs: function() {
this.pos = this.tabPosition == 'bottom' ? this.footer : this.header;
var count = this.items.length,
ow = this.pos.dom.offsetWidth,
tw = this.pos.dom.clientWidth,
wrap = this.stripWrap,
wd = wrap.dom,
cw = wd.offsetWidth,
pos = this.getScrollPos(),
l = this.edge.getOffsetsTo(this.stripWrap)[0] + pos;

if (!this.enableTabScroll || count < 1 || cw < 20) { // 20 to prevent display:none issues
if (count == 0) {wrap.setWidth(tw);} //MY FIX

27 Apr 2010, 9:09 PM
Fixed in SVN, rev 6549, thanks for the report.