the counter in a parent tab should report the count of tabs not only collapsed descendants but including itself.

This commit is contained in:
SHIMODA Hiroshi 2011-11-16 10:45:19 +09:00
parent bcca67868e
commit bbd95f450b

View File

@ -4778,7 +4778,7 @@ TreeStyleTabBrowser.prototype = {
{ {
var count = this.document.getAnonymousElementByAttribute(aTab, 'class', this.kCOUNTER); var count = this.document.getAnonymousElementByAttribute(aTab, 'class', this.kCOUNTER);
if (count) { if (count) {
count.setAttribute('value', this.getDescendantTabs(aTab).length); count.setAttribute('value', this.getDescendantTabs(aTab).length + 1);
} }
if (!aDontUpdateAncestor) { if (!aDontUpdateAncestor) {
let parent = this.getParentTab(aTab); let parent = this.getParentTab(aTab);