Bug 1352498 - Flex the labels of boxes that have Learn More links on them. r=mconley draft
authorJared Wein <jwein@mozilla.com>
Fri, 31 Mar 2017 13:55:01 -0400
changeset 554488 7512be71da950790e454ac25bcd60026b45574a0
parent 554473 5bd82c644e1fdc15b92ca9e34b31841151b44957
child 554496 e7ec4d6d3373058ef35e2c333370171fc3cbd344
push id51949
push userbmo:jaws@mozilla.com
push dateFri, 31 Mar 2017 17:55:18 +0000
reviewersmconley
bugs1352498, 1335907
milestone55.0a1
Bug 1352498 - Flex the labels of boxes that have Learn More links on them. r=mconley This is to make sure that the text will wrap and not force the box to have its full width. These changes look to have gotten lost as part of the re-org in bug 1335907. MozReview-Commit-ID: EiTALg6dY7G
browser/components/preferences/in-content/advanced.xul
--- a/browser/components/preferences/in-content/advanced.xul
+++ b/browser/components/preferences/in-content/advanced.xul
@@ -101,31 +101,31 @@
 #ifdef MOZ_TELEMETRY_REPORTING
 <groupbox id="historyGroup" data-category="paneAdvanced" hidden="true">
 <caption><label>&reports.label;</label></caption>
   <vbox>
     <caption>
     <checkbox id="submitHealthReportBox" label="&enableHealthReport.label;"
               accesskey="&enableHealthReport.accesskey;"/>
   </caption>
-    <hbox class="indent">
-      <label>&healthReportDesc.label;</label>
-      <label id="FHRLearnMore"
+    <hbox class="indent" flex="1">
+      <label flex="1">&healthReportDesc.label;</label>
+      <label id="FHRLearnMore" flex="1"
              class="learnMore text-link">&healthReportLearnMore.label;</label>
     </hbox>
     <hbox class="indent">
       <groupbox flex="1">
         <caption>
           <checkbox id="submitTelemetryBox" preference="toolkit.telemetry.enabled"
                     label="&enableTelemetryData.label;"
                     accesskey="&enableTelemetryData.accesskey;"/>
         </caption>
-        <hbox class="indent">
-          <label id="telemetryDataDesc">&telemetryDesc.label;</label>
-          <label id="telemetryLearnMore"
+        <hbox class="indent" flex="1">
+          <label id="telemetryDataDesc" flex="1">&telemetryDesc.label;</label>
+          <label id="telemetryLearnMore" flex="1"
                  class="learnMore text-link">&telemetryLearnMore.label;</label>
         </hbox>
       </groupbox>
     </hbox>
   </vbox>
 </groupbox>
 #endif
 
@@ -133,17 +133,17 @@
 #ifdef MOZ_CRASHREPORTER
 <groupbox data-category="paneAdvanced" hidden="true">
   <caption>
     <checkbox id="automaticallySubmitCrashesBox"
               preference="browser.crashReports.unsubmittedCheck.autoSubmit"
               label="&alwaysSubmitCrashReports.label;"
               accesskey="&alwaysSubmitCrashReports.accesskey;"/>
   </caption>
-  <hbox class="indent">
-    <label>&crashReporterDesc2.label;</label>
-    <label id="crashReporterLearnMore"
+  <hbox class="indent" flex="1">
+    <label flex="1">&crashReporterDesc2.label;</label>
+    <label id="crashReporterLearnMore" flex="1"
            class="learnMore text-link">&crashReporterLearnMore.label;</label>
   </hbox>
 </groupbox>
 
 #endif
 #endif
\ No newline at end of file