ライブラリ更新

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@2647 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-06-17 06:25:09 +00:00
parent 7dcbc220ed
commit d20f1050fe

View File

@ -57,27 +57,34 @@ window.addEventListener('DOMContentLoaded', function() {
var h = frame.innerHeight; var h = frame.innerHeight;
var dx = 0; var dx = 0;
var dy = 0; var dy = 0;
if (TST && if (
TST &&
TST.autoHideEnabled && TST.autoHideEnabled &&
TST.autoHideShown) { ('autoHideShown' in TST ?
TST.autoHideShown :
TST.tabbarShown
)
) {
var pos = b.getAttribute(TST.kTABBAR_POSITION); 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) switch (pos)
{ {
case 'left': case 'left':
dx = TST.autoHideXOffset; dx = xOffset;
w -= TST.autoHideXOffset; w -= xOffset;
break; break;
case 'right': case 'right':
x += TST.autoHideXOffset; x += xOffset;
w -= TST.autoHideXOffset; w -= xOffset;
break; break;
case 'top': case 'top':
dy = TST.autoHideYOffset; dy = yOffset;
h -= TST.autoHideYOffset; h -= yOffset;
break; break;
case 'bottom': case 'bottom':
y += TST.autoHideYOffset; y += yOffset;
h -= TST.autoHideYOffset; h -= yOffset;
break; break;
} }
} }