mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 913780 - make overflowable toolbar care about search splitter, r=jaws (fix tests on a CLOSED TREE)
This commit is contained in:
parent
ba3c07c027
commit
a8fb772727
@ -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);
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user