ライブラリ更新

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 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;
}
}