зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1420884 - Make savedAddressesBtnWrapper and savedCreditCardsBtnWrapper align start to keep the buttons as same size when the sibling description elements' height is changed by longer l10n strings. r=ralin
MozReview-Commit-ID: ATMwMdUGfmE --HG-- extra : rebase_source : d471a89a1526db5559b9ae4a3ba6c3cf0026634c
This commit is contained in:
Родитель
61603d61fe
Коммит
b468a48eb8
|
@ -91,6 +91,9 @@ FormAutofillPreferences.prototype = {
|
|||
addressAutofillLearnMore.setAttribute("value", this.bundle.GetStringFromName("learnMoreLabel"));
|
||||
addressAutofillCheckbox.setAttribute("label", this.bundle.GetStringFromName("autofillAddressesCheckbox"));
|
||||
savedAddressesBtn.setAttribute("label", this.bundle.GetStringFromName("savedAddressesBtnLabel"));
|
||||
// Align the start to keep the savedAddressesBtn as original size
|
||||
// when addressAutofillCheckboxGroup's height is changed by a longer l10n string
|
||||
savedAddressesBtnWrapper.setAttribute("align", "start");
|
||||
|
||||
addressAutofillLearnMore.setAttribute("href", learnMoreURL);
|
||||
|
||||
|
@ -135,6 +138,9 @@ FormAutofillPreferences.prototype = {
|
|||
creditCardAutofillLearnMore.setAttribute("value", this.bundle.GetStringFromName("learnMoreLabel"));
|
||||
creditCardAutofillCheckbox.setAttribute("label", this.bundle.GetStringFromName("autofillCreditCardsCheckbox"));
|
||||
savedCreditCardsBtn.setAttribute("label", this.bundle.GetStringFromName("savedCreditCardsBtnLabel"));
|
||||
// Align the start to keep the savedCreditCardsBtn as original size
|
||||
// when creditCardAutofillCheckboxGroup's height is changed by a longer l10n string
|
||||
savedCreditCardsBtnWrapper.setAttribute("align", "start");
|
||||
|
||||
creditCardAutofillLearnMore.setAttribute("href", learnMoreURL);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче