extensions.treestyletab.tabbar.togglerSizeが0以下の時はtoggler自体を表示しない

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4189 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-04-27 06:54:48 +00:00
parent ca8bd546f9
commit 67adbabf31

View File

@ -1125,6 +1125,10 @@ TreeStyleTabBrowser.prototype = {
this.togglerSize = value; this.togglerSize = value;
var toggler = document.getAnonymousElementByAttribute(b, 'class', this.kTABBAR_TOGGLER); var toggler = document.getAnonymousElementByAttribute(b, 'class', this.kTABBAR_TOGGLER);
toggler.style.minWidth = toggler.style.minHeight = value+'px'; toggler.style.minWidth = toggler.style.minHeight = value+'px';
if (this.togglerSize <= 0)
toggler.setAttribute('collapsed', true);
else
toggler.removeAttribute('collapsed');
break; break;
default: default: