зеркало из https://github.com/mozilla/gecko-dev.git
Bug 614865 - Addon about window does not handle overflow very well. r=dtownsend, a=blocking-final
This commit is contained in:
Родитель
07b6877825
Коммит
bb186c704b
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче