зеркало из https://github.com/mozilla/gecko-dev.git
Bug 872578 - Customization shouldn't force a large window size, r=jaws
--HG-- extra : rebase_source : 0435554351130ce8b66ba72d345e4bbd77f7e332
This commit is contained in:
Родитель
7760d259e9
Коммит
89e24c4b3a
|
@ -2,7 +2,7 @@
|
|||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<hbox id="customization-container" flex="1">
|
||||
<hbox id="customization-container" flex="1" hidden="true">
|
||||
<vbox flex="1" id="customization-palette-container">
|
||||
<label id="customization-header" value="&customizeMode.menuAndToolbars.header;"/>
|
||||
<vbox id="customization-palette" flex="1"/>
|
||||
|
@ -26,4 +26,4 @@
|
|||
</vbox>
|
||||
<spacer flex="1"/>
|
||||
</vbox>
|
||||
</hbox>
|
||||
</hbox>
|
||||
|
|
|
@ -75,6 +75,9 @@ CustomizeMode.prototype = {
|
|||
let window = this.window;
|
||||
let document = this.document;
|
||||
|
||||
let customizer = document.getElementById("customization-container");
|
||||
customizer.hidden = false;
|
||||
|
||||
// We don't need to switch to kAboutURI, or open a new tab at
|
||||
// kAboutURI if we're already on it.
|
||||
if (this.browser.selectedBrowser.currentURI.spec != kAboutURI) {
|
||||
|
@ -105,7 +108,6 @@ CustomizeMode.prototype = {
|
|||
evt.initCustomEvent("CustomizationStart", true, true, window);
|
||||
window.dispatchEvent(evt);
|
||||
|
||||
let customizer = document.getElementById("customization-container");
|
||||
customizer.parentNode.selectedPanel = customizer;
|
||||
|
||||
window.PanelUI.hide();
|
||||
|
@ -233,6 +235,9 @@ CustomizeMode.prototype = {
|
|||
}
|
||||
}
|
||||
|
||||
let customizer = document.getElementById("customization-container");
|
||||
customizer.hidden = true;
|
||||
|
||||
this._changed = false;
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче