don't touch vertical containers
This commit is contained in:
parent
6ab0543a32
commit
35d1bfce99
@ -972,20 +972,6 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
namedNodes.counterAnchor = namedNodes.label;
|
namedNodes.counterAnchor = namedNodes.label;
|
||||||
if (namedNodes.counterAnchor.parentNode != namedNodes.counter.parentNode) {
|
|
||||||
let containerFinder = d.createRange();
|
|
||||||
containerFinder.selectNode(namedNodes.counterAnchor);
|
|
||||||
containerFinder.setEndAfter(namedNodes.counter);
|
|
||||||
let container = containerFinder.getCommonAncestor();
|
|
||||||
while (namedNodes.counterAnchor.parentNode != container)
|
|
||||||
{
|
|
||||||
namedNodes.counterAnchor = namedNodes.counterAnchor.parentNode;
|
|
||||||
}
|
|
||||||
while (namedNodes.counter.parentNode != container)
|
|
||||||
{
|
|
||||||
namedNodes.counter = namedNodes.counter.parentNode;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var foundContainers = [];
|
var foundContainers = [];
|
||||||
var containers = [
|
var containers = [
|
||||||
@ -1004,6 +990,9 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
},
|
},
|
||||||
initTabContentsOrderInternal : function TSTBrowser_initTabContentsOrderInternal(aContainer, aNamedNodes, aForce)
|
initTabContentsOrderInternal : function TSTBrowser_initTabContentsOrderInternal(aContainer, aNamedNodes, aForce)
|
||||||
{
|
{
|
||||||
|
if (this.window.getComputedStyle(aContainer, '').getPropertyValue('-moz-box-orient') == 'vertical')
|
||||||
|
return;
|
||||||
|
|
||||||
var nodes = Array.slice(this.document.getAnonymousNodes(aContainer) || aContainer.childNodes);
|
var nodes = Array.slice(this.document.getAnonymousNodes(aContainer) || aContainer.childNodes);
|
||||||
|
|
||||||
// reset order at first!
|
// reset order at first!
|
||||||
|
Loading…
Reference in New Issue
Block a user