backout rest of changeset e7ddb79fdb10

This commit is contained in:
Dão Gottwald 2009-07-10 11:01:53 +02:00
parent d536e0aa34
commit eb912e4637

View File

@ -2994,7 +2994,7 @@
this.setAttribute("closebuttons", "activetab");
break;
case 1:
let width = this.firstChild.clientWidth;
var width = this.firstChild.boxObject.width;
// 0 width is an invalid value and indicates
// an item without display, so ignore.
if (width > this.mTabClipWidth || width == 0)