Bug #362919 --> fix wrapping issues with the remote content policy description. Remove unnecessary flex from some of the notification bar elements. sr=neil

This commit is contained in:
scott%scott-macgregor.org 2007-01-24 02:00:56 +00:00
Родитель 3dbccadf4c
Коммит 2a3ffbed75
2 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -2219,7 +2219,7 @@ var gMessageNotificationBar =
// update the allow remote content for sender string
var headerParser = Components.classes["@mozilla.org/messenger/headerparser;1"].getService(Components.interfaces.nsIMsgHeaderParser);
var emailAddress = headerParser.extractHeaderAddressMailboxes(null, aMsgHdr.author);
document.getElementById('allowRemoteContentForAuthorDesc').value =
document.getElementById('allowRemoteContentForAuthorDesc').textContent =
gMessengerBundle.getFormattedString('alwaysLoadRemoteContentForSender', [emailAddress ? emailAddress : aMsgHdr.author]);
this.updateMsgNotificationBar(kMsgNotificationRemoteImages, true);
},

Просмотреть файл

@ -2185,25 +2185,22 @@
<hbox id="phishingBar" class="msgNotificationBar" align="center">
<image id="phishingBarImage"/>
<description flex="1" class="msgNotificationBarText">&phishingBarMessage.label;</description>
<spacer flex="1"/>
<button label="&removePhishingBarButton.label;" oncommand="MsgIsNotAScam();"/>
</hbox>
<hbox id="junkBar" class="msgNotificationBar" align="center">
<image id="junkBarImage"/>
<description flex="1" class="msgNotificationBarText">&junkBarMessage.label;</description>
<spacer flex="1"/>
<button label="&junkBarButton.label;" oncommand="JunkSelectedMessages(false);"/>
</hbox>
<hbox id="remoteContentBar" class="msgNotificationBar" align="center">
<image id="remoteContentImage"/>
<vbox flex="1">
<description flex="1" class="msgNotificationBarText">&remoteContentMessage.label;</description>
<label id="allowRemoteContentForAuthorDesc" class="text-link" flex="1"
<description class="msgNotificationBarText">&remoteContentMessage.label;</description>
<label id="allowRemoteContentForAuthorDesc" class="text-link"
onclick="allowRemoteContentForSender();"/>
</vbox>
<spacer flex="1"/>
<button label="&loadRemoteContentButton1.label;" oncommand="loadMsgWithRemoteContent();"/>
</hbox>
</deck>