Bug 889597 - Hide panelUI by default to improve ts_paint, r=MattN,jaws

This commit is contained in:
Gijs Kruitbosch 2013-07-02 23:16:36 +02:00
parent c108655d8a
commit d9077cbb13
3 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@
role="group"
type="arrow"
level="top"
hidden="true"
consumeoutsideclicks="true"
noautofocus="true">
<panelmultiview id="PanelUI-multiView" mainViewId="PanelUI-mainView">
@ -73,6 +74,7 @@
role="group"
type="arrow"
level="top"
hidden="true"
consumeoutsideclicks="true">
<vbox id="widget-overflow-list">
</vbox>

View File

@ -78,6 +78,7 @@ const PanelUI = {
this.hide();
} else if (this.panel.state == "closed") {
this.ensureRegistered();
this.panel.hidden = false;
let anchor = aEvent.target;
let iconAnchor =

View File

@ -2097,6 +2097,7 @@ OverflowableToolbar.prototype = {
this._panel.hidePopup();
else {
let doc = aEvent.target.ownerDocument;
this._panel.hidden = false;
let anchor = doc.getAnonymousElementByAttribute(this._chevron, "class", "toolbarbutton-icon");
this._panel.openPopup(anchor || this._chevron, "bottomcenter topright");
}