fixed the width setting

This commit is contained in:
Kerrick Long
2011-07-13 16:11:52 -05:00
parent 884b170a59
commit 6a51d7eef3
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -20,7 +20,6 @@
document.getElementById('body').innerHTML = popup.createSubmitForm(currTab.url);
}
});
document.getElementById('body').setAttribute('style', 'max-width: ' + settings.get('popupWidth') + 'px');
}
window.addEventListener('load', initPopup);
+2 -2
View File
@@ -543,7 +543,7 @@ Popup.prototype.createListHTML = function (url) {
throw 'Cannot create list HTML for a non-cached URL.';
}
listHTML = '<ol id="posts" style="width: ' + settings.get('popupWidth') + 'px;" data-url="' + url + '">';
listHTML = '<ol id="posts" data-url="' + url + '">';
staleCounter = 0;
utils.forEachIn(cache.get(url).posts, function (name, value) {
@@ -595,7 +595,7 @@ Popup.prototype.createListHTML = function (url) {
listHTML += '</ol>'
if (staleCounter > 0) {
listHTML += '<div class="information" style="width: ' + settings.get('popupWidth') + 'px;">Hiding ' + staleCounter.toString() + ' stale posts. Visit the <a target="_blank" href="/fancy-settings/index.html">options page</a> to change your Fresh Content preferences.</div>';
listHTML += '<div class="information">Hiding ' + staleCounter.toString() + ' stale posts. Visit the <a target="_blank" href="/fancy-settings/index.html">options page</a> to change your Fresh Content preferences.</div>';
}
return listHTML;