From a9765f6c4a8397dae58b0cda0052be8b7f3d0f24 Mon Sep 17 00:00:00 2001 From: 8chan Date: Thu, 12 Jun 2014 17:48:31 +0000 Subject: [PATCH] Fix issue #61 --- js/inline-expanding.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/inline-expanding.js b/js/inline-expanding.js index 5bbfa0a0..4cf5a82d 100644 --- a/js/inline-expanding.js +++ b/js/inline-expanding.js @@ -48,7 +48,8 @@ onready(function(){ delete this.style.filter; } } else { - this.parentNode.style.width = (parseInt(this.dataset.width)+40)+'px'; + if (~this.parentNode.className.indexOf('multifile')) + this.parentNode.style.width = (parseInt(this.dataset.width)+40)+'px'; this.childNodes[0].src = this.dataset.src; this.childNodes[0].style.width = this.dataset.width; this.childNodes[0].style.height = this.dataset.height;