From d20f1050fea62fbdbcaa4435f3f788865f251b7f Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 17 Jun 2008 06:25:09 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=A9=E3=82=A4=E3=83=96=E3=83=A9=E3=83=AA?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= 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@2647 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/res/fullScreenCanvas.xul | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/content/treestyletab/res/fullScreenCanvas.xul b/content/treestyletab/res/fullScreenCanvas.xul index ea8d0053..2ed62976 100644 --- a/content/treestyletab/res/fullScreenCanvas.xul +++ b/content/treestyletab/res/fullScreenCanvas.xul @@ -57,27 +57,34 @@ window.addEventListener('DOMContentLoaded', function() { var h = frame.innerHeight; var dx = 0; var dy = 0; - if (TST && + if ( + TST && TST.autoHideEnabled && - TST.autoHideShown) { + ('autoHideShown' in TST ? + TST.autoHideShown : + TST.tabbarShown + ) + ) { var pos = b.getAttribute(TST.kTABBAR_POSITION); + var xOffset = 'autoHideXOffset' in TST ? TST.autoHideXOffset : TST.tabbarWidth ; + var yOffset = 'autoHideYOffset' in TST ? TST.autoHideYOffset : TST.tabbarHeight ; switch (pos) { case 'left': - dx = TST.autoHideXOffset; - w -= TST.autoHideXOffset; + dx = xOffset; + w -= xOffset; break; case 'right': - x += TST.autoHideXOffset; - w -= TST.autoHideXOffset; + x += xOffset; + w -= xOffset; break; case 'top': - dy = TST.autoHideYOffset; - h -= TST.autoHideYOffset; + dy = yOffset; + h -= yOffset; break; case 'bottom': - y += TST.autoHideYOffset; - h -= TST.autoHideYOffset; + y += yOffset; + h -= yOffset; break; } }