Bug 971705 - fix Australis' panel's mainViewObserver to disconnect on popuphidden, r=mconley

--HG--
extra : rebase_source : 9e8a88a26ecb3b134504d2d112d290a7bcb0b44b
This commit is contained in:
Gijs Kruitbosch 2014-02-12 14:54:35 +00:00
parent b72f214116
commit 9dffaab568

View File

@ -174,13 +174,6 @@
this.setAttribute("viewtype", "main");
}
this._mainViewObserver.observe(this._mainView, {
attributes: true,
characterData: true,
childList: true,
subtree: true
});
this._shiftMainView();
]]></body>
</method>
@ -296,6 +289,14 @@
// every time the popup closes, which is why we have to set it each time.
this._panel.autoPosition = false;
this._syncContainerWithMainView();
this._mainViewObserver.observe(this._mainView, {
attributes: true,
characterData: true,
childList: true,
subtree: true
});
break;
case "popupshown":
this._setMaxHeight();
@ -304,6 +305,7 @@
this.removeAttribute("panelopen");
this._mainView.style.removeProperty("height");
this.showMainView();
this._mainViewObserver.disconnect();
break;
}
]]></body>