mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 880458 - Implement anchor support for overflowable toolbar, r=mconley
--HG-- extra : rebase_source : bc272cc22061d6d3b6d161ca99caba5ac8d8f491
This commit is contained in:
parent
39be5dbdfb
commit
8402ae2f5d
@ -2173,6 +2173,7 @@ OverflowableToolbar.prototype = {
|
||||
if (!child.hasAttribute("nooverflow")) {
|
||||
this._collapsed.push({child: child, minSize: this._target.clientWidth});
|
||||
child.classList.add("overflowedItem");
|
||||
child.setAttribute("customizableui-anchorid", this._chevron.id);
|
||||
|
||||
this._list.insertBefore(child, this._list.firstChild);
|
||||
this._toolbar.setAttribute("overflowing", "true");
|
||||
@ -2200,6 +2201,7 @@ OverflowableToolbar.prototype = {
|
||||
|
||||
this._collapsed.pop();
|
||||
this._target.appendChild(child);
|
||||
child.removeAttribute("customizableui-anchorid");
|
||||
child.classList.remove("overflowedItem");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user