From 5d697a72b7d7b727655420374380f4803839d5cb Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 4 Mar 2009 20:22:40 +0000 Subject: [PATCH] =?UTF-8?q?=E8=B5=B7=E5=8B=95=E7=9B=B4=E5=BE=8C=E3=81=AB?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=81=8C=E3=82=AA=E3=83=BC?= =?UTF-8?q?=E3=83=90=E3=83=BC=E3=83=95=E3=83=AD=E3=83=BC=E3=81=97=E3=81=AA?= =?UTF-8?q?=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= 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@3762 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index e64e1f88..83a6438e 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -125,6 +125,20 @@ TreeStyleTabBrowser.prototype = { var container = document.getAnonymousElementByAttribute(b.mTabContainer, 'class', 'tabs-container'); if (container) container.removeAttribute('overflow'); + window.setTimeout(function() { + var inner = document.getAnonymousElementByAttribute(b.mTabContainer, 'class', 'tabbrowser-arrowscrollbox'); + if (inner) inner = document.getAnonymousElementByAttribute(inner, 'anonid', 'scrollbox'); + if (inner) inner = document.getAnonymousNodes(inner)[0]; + if ( + inner && + ( + inner.boxObject.width > container.boxObject.width || + inner.boxObject.height > container.boxObject.height + ) + ) { + container.setAttribute('overflow', true); + } + }, 100); /* Closing collapsed last tree breaks selected tab. To solve this problem, I override the setter to