From c7b0fb5f3e6f7ebfd6b56b5e5539c037dfecfd0d Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 30 Apr 2010 03:48:07 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E3=81=8C=E3=81=82=E3=81=B5=E3=82=8C=E3=81=9F?= =?UTF-8?q?=E3=81=8B=E3=81=A9=E3=81=86=E3=81=8B=E3=81=AE=E3=82=A4=E3=83=99?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=81=AE=E7=9B=A3=E8=A6=96=E3=82=BF=E3=82=A4?= =?UTF-8?q?=E3=83=9F=E3=83=B3=E3=82=B0=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@6624 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 9f1e0863..92ad1e0e 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -217,6 +217,9 @@ TreeStyleTabBrowser.prototype = { if (this.isFloating) window.addEventListener('resize', this, true); + this.scrollBox.addEventListener('overflow', this, true); + this.scrollBox.addEventListener('underflow', this, true); + window.addEventListener('TreeStyleTabPrintPreviewEntered', this, false); window.addEventListener('TreeStyleTabPrintPreviewExited', this, false); @@ -1260,8 +1263,6 @@ TreeStyleTabBrowser.prototype = { container.removeAttribute('overflow'); var scrollBox = this.scrollBox; - scrollBox.addEventListener('overflow', this, true); - scrollBox.addEventListener('underflow', this, true); window.setTimeout(function() { scrollBox = document.getAnonymousElementByAttribute(scrollBox, 'anonid', 'scrollbox'); if (scrollBox) scrollBox = document.getAnonymousNodes(scrollBox)[0];