From d64be9150d46e6d112512290fb008d27f7f428ab Mon Sep 17 00:00:00 2001 From: wzeth Date: Wed, 2 Nov 2016 09:01:38 -0400 Subject: [PATCH] fix the jumping beans effect Pages will jump if image size isn't explicitly declared. --- contrib/js/nntpchan/banner.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/js/nntpchan/banner.js b/contrib/js/nntpchan/banner.js index 19eb7f6..7ef4ab4 100644 --- a/contrib/js/nntpchan/banner.js +++ b/contrib/js/nntpchan/banner.js @@ -7,6 +7,8 @@ function nntpchan_inject_banners(elem, prefix) { var e = document.createElement("img"); e.src = banner; e.id = "nntpchan_banner"; + e.height = "150"; + e.width = "300"; elem.appendChild(e); }