Bug 880458 - Implement anchor support for overflowable toolbar, r=mconley

--HG--
extra : rebase_source : bc272cc22061d6d3b6d161ca99caba5ac8d8f491
This commit is contained in:
Gijs Kruitbosch 2013-07-11 18:41:21 +02:00
parent 39be5dbdfb
commit 8402ae2f5d

View File

@ -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");
}