Bug 913780 - make overflowable toolbar care about search splitter, r=jaws (fix tests on a CLOSED TREE)

This commit is contained in:
Gijs Kruitbosch 2013-09-09 22:17:34 +02:00
parent ba3c07c027
commit a8fb772727
2 changed files with 7 additions and 0 deletions

View File

@ -2224,6 +2224,7 @@ function UpdateUrlbarSearchSplitterState()
splitter.setAttribute("resizebefore", "flex");
splitter.setAttribute("resizeafter", "flex");
splitter.setAttribute("skipintoolbarset", "true");
splitter.setAttribute("nooverflow", "true");
splitter.className = "chromeclass-toolbar-additional";
}
urlbar.parentNode.insertBefore(splitter, ibefore);

View File

@ -2328,6 +2328,9 @@ OverflowableToolbar.prototype = {
}
child = prevChild;
};
let win = this._target.ownerDocument.defaultView;
win.UpdateUrlbarSearchSplitterState();
},
_onResize: function(aEvent) {
@ -2353,6 +2356,9 @@ OverflowableToolbar.prototype = {
child.classList.remove("overflowedItem");
}
let win = this._target.ownerDocument.defaultView;
win.UpdateUrlbarSearchSplitterState();
if (!this._collapsed.length) {
this._toolbar.removeAttribute("overflowing");
}