Bug 1396583 - Fix wrong tooltip position by wrapping hbox. r=jaws, a=gchang
authorRicky Chien <ricky060709@gmail.com>
Tue, 05 Sep 2017 14:10:09 +0800
changeset 666722 cd6d5cef00aaaab272597478284213186ef21fda
parent 666721 dad699588517677cbbf02e9f6dd5cb4f0f098d0b
child 666723 11ba91f0565e73615f52d317fa53bda7be6e5cd8
push id80488
push userbmo:mkelly@mozilla.com
push dateTue, 19 Sep 2017 04:42:30 +0000
reviewersjaws, gchang
bugs1396583
milestone56.0
Bug 1396583 - Fix wrong tooltip position by wrapping hbox. r=jaws, a=gchang MozReview-Commit-ID: 1xvD0FEcVxm
browser/components/preferences/in-content-new/privacy.xul
--- a/browser/components/preferences/in-content-new/privacy.xul
+++ b/browser/components/preferences/in-content-new/privacy.xul
@@ -350,23 +350,26 @@
             </hbox>
           </hbox>
           <hbox id="keepRow"
                 class="indent"
                 align="center">
             <label id="keepUntil"
                    control="keepCookiesUntil"
                    accesskey="&keepUntil.accesskey;">&keepUntil.label;</label>
-            <menulist id="keepCookiesUntil"
-                      preference="network.cookie.lifetimePolicy">
-              <menupopup>
-                <menuitem label="&expire.label;" value="0"/>
-                <menuitem label="&close.label;" value="2"/>
-              </menupopup>
-            </menulist>
+            <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
+            <hbox>
+              <menulist id="keepCookiesUntil"
+                        preference="network.cookie.lifetimePolicy">
+                <menupopup>
+                  <menuitem label="&expire.label;" value="0"/>
+                  <menuitem label="&close.label;" value="2"/>
+                </menupopup>
+              </menulist>
+            </hbox>
             <spacer flex="1"/>
             <!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
             <hbox>
               <button id="showCookiesButton"
                       class="accessory-button"
                       label="&showCookies.label;"
                       accesskey="&showCookies.accesskey;"
                       preference="pref.privacy.disable_button.view_cookies"/>