Bug 614865 - Addon about window does not handle overflow very well. r=dtownsend, a=blocking-final

This commit is contained in:
Blair McBride 2010-12-07 13:32:08 +13:00
parent b46237ceb3
commit d6bf52357d
4 changed files with 14 additions and 10 deletions

View File

@ -49,7 +49,7 @@ function init() {
document.title = extensionsStrings.getFormattedString("aboutWindowTitle", [addon.name]);
var extensionName = document.getElementById("extensionName");
extensionName.setAttribute("value", addon.name);
extensionName.textContent = addon.name;
var extensionVersion = document.getElementById("extensionVersion");
if (addon.version)
@ -98,6 +98,8 @@ function init() {
var acceptButton = document.documentElement.getButton("accept");
acceptButton.label = extensionsStrings.getString("aboutWindowCloseButton");
setTimeout(sizeToContent, 0);
}
function appendToList(aHeaderId, aNodeId, aItems) {
@ -111,7 +113,7 @@ function appendToList(aHeaderId, aNodeId, aItems) {
for (let i = 0; i < aItems.length; i++) {
var label = document.createElement("label");
label.setAttribute("value", aItems[i]);
label.textContent = aItems[i];
label.setAttribute("class", "contributor");
node.appendChild(label);
}

View File

@ -59,10 +59,12 @@
</stringbundleset>
<vbox id="clientBox" flex="1">
<hbox class="basic-info" align="center">
<image id="extensionIcon"/>
<vbox>
<label id="extensionName" crop="end"/>
<hbox class="basic-info">
<vbox pack="center">
<image id="extensionIcon"/>
</vbox>
<vbox flex="1">
<label id="extensionName"/>
<label id="extensionVersion" crop="end"/>
</vbox>
</hbox>

View File

@ -16,8 +16,8 @@
#extensionIcon {
list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
max-width: 48px;
max-height: 48px;
max-width: 64px;
max-height: 64px;
-moz-margin-end: 6px;
}

View File

@ -24,8 +24,8 @@
#extensionIcon {
list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
max-width: 48px;
max-height: 48px;
max-width: 64px;
max-height: 64px;
-moz-margin-end: 6px;
}