Bug 952989 - Hide the find bar when the options flyout is displayed. r=mbrubeck

This commit is contained in:
Jim Mathies 2014-01-10 10:56:26 -06:00
parent e7839724f1
commit 0eef181bc1

View File

@ -56,6 +56,7 @@ var FindHelperUI = {
Elements.tabList.addEventListener("TabSelect", this, true); Elements.tabList.addEventListener("TabSelect", this, true);
Elements.browsers.addEventListener("URLChanged", this, true); Elements.browsers.addEventListener("URLChanged", this, true);
window.addEventListener("MozAppbarShowing", this); window.addEventListener("MozAppbarShowing", this);
window.addEventListener("MozFlyoutPanelShowing", this, false);
}, },
handleEvent: function findHelperHandleEvent(aEvent) { handleEvent: function findHelperHandleEvent(aEvent) {
@ -77,6 +78,7 @@ var FindHelperUI = {
break; break;
case "MozAppbarShowing": case "MozAppbarShowing":
case "MozFlyoutPanelShowing":
if (aEvent.target != this._container) { if (aEvent.target != this._container) {
this.hide(); this.hide();
} }