上置き・サイズ固定のタブバーに対しては、toolboxに高さを設定しないように
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6576 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
64ac5176e5
commit
9f65adf634
@ -1206,10 +1206,14 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
if (toolbox.localName != 'toolbox')
|
if (toolbox.localName != 'toolbox')
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!positioned) {
|
||||||
|
toolbox.removeAttribute('height', height);
|
||||||
|
}
|
||||||
|
else {
|
||||||
// hack to reset the height of the toolbox
|
// hack to reset the height of the toolbox
|
||||||
var height = 0;
|
var height = 0;
|
||||||
Array.slice(toolbox.childNodes).forEach(function(aNode) {
|
Array.slice(toolbox.childNodes).forEach(function(aNode) {
|
||||||
if (aNode.nodeType == Node.ELEMENT_NODE && (aNode != strip || !positioned))
|
if (aNode.nodeType == Node.ELEMENT_NODE && aNode != strip)
|
||||||
height += aNode.boxObject.height;
|
height += aNode.boxObject.height;
|
||||||
});
|
});
|
||||||
height += parseInt(window.getComputedStyle(toolbox, '').getPropertyValue('margin-top').replace('px', ''));
|
height += parseInt(window.getComputedStyle(toolbox, '').getPropertyValue('margin-top').replace('px', ''));
|
||||||
@ -1223,6 +1227,7 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
// aSelf.startRendering();
|
// aSelf.startRendering();
|
||||||
// }, 0, this);
|
// }, 0, this);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
resetTabbarSize : function TSTBrowser_resetTabbarSize()
|
resetTabbarSize : function TSTBrowser_resetTabbarSize()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user