From 67adbabf31ab7e4129e7cb344d4102ea950cd6ac Mon Sep 17 00:00:00 2001 From: piro Date: Mon, 27 Apr 2009 06:54:48 +0000 Subject: [PATCH] =?UTF-8?q?extensions.treestyletab.tabbar.togglerSize?= =?UTF-8?q?=E3=81=8C0=E4=BB=A5=E4=B8=8B=E3=81=AE=E6=99=82=E3=81=AFtoggler?= =?UTF-8?q?=E8=87=AA=E4=BD=93=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=97=E3=81=AA?= =?UTF-8?q?=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4189 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index e0c1b778..69ff88f2 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1125,6 +1125,10 @@ TreeStyleTabBrowser.prototype = { this.togglerSize = value; var toggler = document.getAnonymousElementByAttribute(b, 'class', this.kTABBAR_TOGGLER); toggler.style.minWidth = toggler.style.minHeight = value+'px'; + if (this.togglerSize <= 0) + toggler.setAttribute('collapsed', true); + else + toggler.removeAttribute('collapsed'); break; default: