From 1cb6ebcf602a51f53a45c18a0d196b0ec9b85158 Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 31 Mar 2010 02:48:09 +0000 Subject: [PATCH] =?UTF-8?q?Minefield=203.7a4pre=E3=81=A7=E3=82=BF=E3=83=96?= =?UTF-8?q?=E3=83=90=E3=83=BC=E3=81=AE=E5=86=8D=E6=8F=8F=E7=94=BB=E3=81=AE?= =?UTF-8?q?=E5=9B=9E=E6=95=B0=E3=82=92=E6=B8=9B=E3=82=89=E3=81=97=E3=81=9F?= =?UTF-8?q?=EF=BC=88=E5=8B=95=E3=81=8D=E3=81=AE=E3=82=B9=E3=83=A0=E3=83=BC?= =?UTF-8?q?=E3=82=B9=E3=81=95=E3=82=88=E3=82=8A=E3=82=82=E8=BB=BD=E3=81=95?= =?UTF-8?q?=E3=82=92=E9=87=8D=E8=A6=96=EF=BC=89?= 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@6525 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index dfff994f..d6f80758 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1145,9 +1145,21 @@ TreeStyleTabBrowser.prototype = { updateFloatingTabbar : function TSTBrowser_updateFloatingTabbar() { - // this method is for Firefox 3.7 or later - if (!this.isFloating) return; + if ( + !this.isFloating || // this method is just for Firefox 3.7 or later + this.updateFloatingTabbarTimer + ) + return; + this.stopRendering(); + this.updateFloatingTabbarTimer = window.setTimeout(function(aSelf) { + aSelf.updateFloatingTabbarTimer = null; + aSelf.updateFloatingTabbarInternal() + aSelf.startRendering(); + }, 0, this); + }, + updateFloatingTabbarInternal : function TSTBrowser_updateFloatingTabbarInternal() + { var strip = this.tabStrip; var tabContainer = this.mTabBrowser.tabContainer; var positioned = false;