Bug 1317882 - Calculate overflow for the insecure field richlistitem in the constructor. r=MattN
authorTimothy Guan-tin Chien <timdream@gmail.com>
Tue, 29 Nov 2016 21:18:58 -0800
changeset 324771 a8617a600ec49fc5c41335ac978ea831fc85eff9
parent 324770 466d794c37a1275035ab51f78f57cf79efcd8260
child 324772 53a2e609bc8941ee98f679f1576e30e207b53d2b
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersMattN
bugs1317882
milestone53.0a1
Bug 1317882 - Calculate overflow for the insecure field richlistitem in the constructor. r=MattN MozReview-Commit-ID: 9OxrUyK38Ss
toolkit/content/widgets/autocomplete.xml
--- a/toolkit/content/widgets/autocomplete.xml
+++ b/toolkit/content/widgets/autocomplete.xml
@@ -1505,16 +1505,23 @@ extends="chrome://global/content/binding
                 xbl:inherits="selected,actiontype">
         <xul:description class="ac-text-overflow-container">
           <xul:description anonid="action-text"
                            class="ac-action-text"
                            xbl:inherits="selected"/>
         </xul:description>
       </xul:hbox>
     </content>
+    <implementation>
+      <constructor><![CDATA[
+        // Unlike other autocomplete items, the height of the insecure warning
+        // increases by wrapping.
+        this._handleOverflow();
+      ]]></constructor>
+    </implementation>
   </binding>
 
   <binding id="autocomplete-richlistitem" extends="chrome://global/content/bindings/richlistbox.xml#richlistitem">
 
     <content align="center"
              onoverflow="this._onOverflow();"
              onunderflow="this._onUnderflow();">
       <xul:image anonid="type-icon"