Bug 1420883 - Change setting width to min-width for manage addresses dialog. r=lchang
MozReview-Commit-ID: E1jjtfSdjZs
--- a/browser/extensions/formautofill/content/manageDialog.css
+++ b/browser/extensions/formautofill/content/manageDialog.css
@@ -1,12 +1,17 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
+html {
+ /* Prevent unnecessary horizontal scroll bar from showing */
+ overflow-x: hidden;
+}
+
div {
display: flex;
}
fieldset {
margin: 0;
padding: 0;
border: none;
--- a/browser/extensions/formautofill/content/manageDialog.js
+++ b/browser/extensions/formautofill/content/manageDialog.js
@@ -44,17 +44,17 @@ class ManageRecords {
uninit() {
log.debug("uninit");
this.detachEventListeners();
this._elements = null;
}
localizeDocument() {
- document.documentElement.style.width = FormAutofillUtils.stringBundle.GetStringFromName("manageDialogsWidth");
+ document.documentElement.style.minWidth = FormAutofillUtils.stringBundle.GetStringFromName("manageDialogsWidth");
FormAutofillUtils.localizeMarkup(AUTOFILL_BUNDLE_URI, document);
}
/**
* Get the selected options on the addresses element.
*
* @returns {array<DOMElement>}
*/