informational tabでサムネイルを表示した状態の時、タブを追加する時のアニメーションがおかしくなっていたのを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4422 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-05-13 06:47:06 +00:00
parent 0da9a6c640
commit 420e504f20

View File

@ -3219,13 +3219,20 @@ TreeStyleTabBrowser.prototype = {
var maxMargin;
var offsetAttr;
if (this.isVertical) {
maxMargin = this.getFirstTab(this.mTabBrowser).boxObject.height;
offsetAttr = this.kY_OFFSET;
}
else {
maxMargin = this.getFirstTab(this.mTabBrowser).boxObject.width;
offsetAttr = this.kX_OFFSET;
let (firstTab) {
firstTab = this.getFirstTab(this.mTabBrowser);
if (this.isVertical) {
maxMargin = firstTab.boxObject.height;
offsetAttr = this.kY_OFFSET;
if (firstTab.style.height)
aTab.style.height = firstTab.style.height;
}
else {
maxMargin = firstTab.boxObject.width;
offsetAttr = this.kX_OFFSET;
if (firstTab.style.width)
aTab.style.width = firstTab.style.width;
}
}
var startMargin, endMargin, startOpacity, endOpacity;