Bug 1317882 - Calculate overflow for the insecure field richlistitem in the constructor draft
authorTimothy Guan-tin Chien <timdream@gmail.com>
Mon, 28 Nov 2016 15:08:15 -0800
changeset 444830 b5c24d1b3dac44060d117075fe277aef438e6fd7
parent 443004 47f42f21541b9b98ad7db82edb996b29065debd0
child 538408 ff964adb051a6985af96d59db2fb7f808dc087d4
push id37384
push usermozilla@noorenberghe.ca
push dateMon, 28 Nov 2016 23:08:59 +0000
bugs1317882
milestone53.0a1
Bug 1317882 - Calculate overflow for the insecure field richlistitem in the constructor MozReview-Commit-ID: 3wFHSk9ImzR
toolkit/content/widgets/autocomplete.xml
--- a/toolkit/content/widgets/autocomplete.xml
+++ b/toolkit/content/widgets/autocomplete.xml
@@ -1511,16 +1511,19 @@ extends="chrome://global/content/binding
         </xul:description>
       </xul:hbox>
     </content>
     <implementation>
       <constructor><![CDATA[
         let learnMoreLink = document.getElementById("learnMoreLink");
         learnMoreLink.setAttribute("value", this._stringBundle.GetStringFromName("insecureFieldWarningLearnMore"));
         learnMoreLink.setAttribute("href", Services.urlFormatter.formatURLPref("app.support.baseURL") + "insecure-form-field-warning");
+
+        // Unlike other autocomplete items, the height of the insecure warning increases by wrapping.
+        this._handleOverflow();
       ]]></constructor>
 
       <property name="_stringBundle">
         <getter><![CDATA[
           if (!this.__stringBundle) {
             this.__stringBundle = Services.strings.createBundle("chrome://passwordmgr/locale/passwordmgr.properties");
           }
           return this.__stringBundle;