Bug 1363960 - Fix horizontal overflow for about:preferences pane r=jaws

MozReview-Commit-ID: DBDXvX5qR79

--HG--
extra : rebase_source : 09437ed5bd81e9b4dc91ad8e333ba78a64da2153
This commit is contained in:
Ricky Chien 2017-07-17 17:39:10 +08:00
parent 82d341e3cd
commit 0322c56145
4 changed files with 35 additions and 26 deletions

View File

@ -457,9 +457,9 @@
<vbox> <vbox>
<hbox id="fontSettings"> <hbox id="fontSettings">
<hbox align="center"> <hbox align="center" flex="1">
<label control="defaultFont" accesskey="&defaultFont2.accesskey;">&defaultFont2.label;</label> <label control="defaultFont" accesskey="&defaultFont2.accesskey;">&defaultFont2.label;</label>
<menulist id="defaultFont" delayprefsave="true" onsyncfrompreference="return FontBuilder.readFontSelection(this);"/> <menulist id="defaultFont" flex="1" delayprefsave="true" onsyncfrompreference="return FontBuilder.readFontSelection(this);"/>
<label id="defaultFontSizeLabel" control="defaultFontSize" accesskey="&defaultSize2.accesskey;">&defaultSize2.label;</label> <label id="defaultFontSizeLabel" control="defaultFontSize" accesskey="&defaultSize2.accesskey;">&defaultSize2.label;</label>
<menulist id="defaultFontSize" delayprefsave="true"> <menulist id="defaultFontSize" delayprefsave="true">
<menupopup> <menupopup>
@ -827,7 +827,9 @@
disabled="true"/> disabled="true"/>
</hbox> </hbox>
<hbox id="unsupportedSystem" align="center"> <hbox id="unsupportedSystem" align="center">
<description flex="1">
<label>&update.unsupported.start;</label><label id="unsupportedLink" class="text-link">&update.unsupported.linkText;</label><label>&update.unsupported.end;</label> <label>&update.unsupported.start;</label><label id="unsupportedLink" class="text-link">&update.unsupported.linkText;</label><label>&update.unsupported.end;</label>
</description>
<spacer flex="1"/> <spacer flex="1"/>
<button label="&update.checkForUpdatesButton.label;" <button label="&update.checkForUpdatesButton.label;"
accesskey="&update.checkForUpdatesButton.accesskey;" accesskey="&update.checkForUpdatesButton.accesskey;"

View File

@ -1224,7 +1224,7 @@ var gPrivacyPane = {
if (!prefStrBundle.getFormattedString) { if (!prefStrBundle.getFormattedString) {
return; return;
} }
actualSizeLabel.value = prefStrBundle.getFormattedString("actualDiskCacheSize", size); actualSizeLabel.textContent = prefStrBundle.getFormattedString("actualDiskCacheSize", size);
}, },
QueryInterface: XPCOMUtils.generateQI([ QueryInterface: XPCOMUtils.generateQI([
@ -1233,7 +1233,7 @@ var gPrivacyPane = {
]) ])
}; };
actualSizeLabel.value = prefStrBundle.getString("actualDiskCacheSizeCalculated"); actualSizeLabel.textContent = prefStrBundle.getString("actualDiskCacheSizeCalculated");
try { try {
var cacheService = var cacheService =

View File

@ -412,14 +412,12 @@
<caption><label>&siteData.label;</label></caption> <caption><label>&siteData.label;</label></caption>
<hbox align="baseline"> <hbox align="baseline">
<vbox flex="1">
<description flex="1">
<label id="totalSiteDataSize"></label> <label id="totalSiteDataSize"></label>
<label id="siteDataLearnMoreLink" class="learnMore text-link" value="&siteDataLearnMoreLink.label;"></label> <label id="siteDataLearnMoreLink" class="learnMore text-link" value="&siteDataLearnMoreLink.label;"></label>
<spacer flex="1" /> </description>
<button id="clearSiteDataButton" </vbox>
class="accessory-button"
icon="clear"
label="&clearSiteData.label;" accesskey="&clearSiteData.accesskey;"/>
</hbox>
<vbox align="end"> <vbox align="end">
<button id="siteDataSettings" <button id="siteDataSettings"
class="accessory-button" class="accessory-button"
@ -429,7 +427,12 @@
&hostCol.label; &hostCol.label;
&statusCol.label; &statusCol.label;
&usageCol.label;"/> &usageCol.label;"/>
<button id="clearSiteDataButton"
class="accessory-button"
icon="clear"
label="&clearSiteData.label;" accesskey="&clearSiteData.accesskey;"/>
</vbox> </vbox>
</hbox>
</groupbox> </groupbox>
<!-- Tracking --> <!-- Tracking -->
@ -520,11 +523,11 @@
</columns> </columns>
<rows> <rows>
<row id="notificationsPolicyRow" align="center"> <row id="notificationsPolicyRow" align="center">
<hbox flex="1"> <description flex="1">
<label id="notificationsPolicy">&notificationsPolicyDesc3.label;</label> <label id="notificationsPolicy">&notificationsPolicyDesc3.label;</label>
<label id="notificationsPolicyLearnMore" <label id="notificationsPolicyLearnMore"
class="learnMore text-link">&notificationsPolicyLearnMore.label;</label> class="learnMore text-link">&notificationsPolicyLearnMore.label;</label>
</hbox> </description>
<hbox pack="end"> <hbox pack="end">
<button id="notificationsPolicyButton" <button id="notificationsPolicyButton"
class="accessory-button" class="accessory-button"
@ -593,12 +596,12 @@
</description> </description>
<vbox> <vbox>
<hbox align="center"> <description flex="1">
<checkbox id="submitHealthReportBox" label="&enableHealthReport1.label;" <checkbox id="submitHealthReportBox" label="&enableHealthReport1.label;"
accesskey="&enableHealthReport1.accesskey;"/> accesskey="&enableHealthReport1.accesskey;"/>
<label id="FHRLearnMore" <label id="FHRLearnMore"
class="learnMore text-link">&healthReportLearnMore.label;</label> class="learnMore text-link">&healthReportLearnMore.label;</label>
</hbox> </description>
#ifndef MOZ_TELEMETRY_REPORTING #ifndef MOZ_TELEMETRY_REPORTING
<description id="TelemetryDisabledDesc" class="indent" control="telemetryGroup">&healthReportingDisabled.label;</description> <description id="TelemetryDisabledDesc" class="indent" control="telemetryGroup">&healthReportingDisabled.label;</description>
#endif #endif

View File

@ -279,6 +279,10 @@ description > html|a {
cursor: pointer; cursor: pointer;
} }
description > checkbox {
vertical-align: middle;
}
#weavePrefsDeck > vbox > label, #weavePrefsDeck > vbox > label,
#weavePrefsDeck > vbox > groupbox, #weavePrefsDeck > vbox > groupbox,
#weavePrefsDeck > vbox > description, #weavePrefsDeck > vbox > description,