From 2f35323de5b563cc95278c190f2bb4bfee44c667 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sun, 22 Apr 2012 16:57:26 +1000 Subject: [PATCH] inline-expanding.js: don't expand larger than the window --- js/inline-expanding.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/inline-expanding.js b/js/inline-expanding.js index 195f92d6..f6714d7f 100644 --- a/js/inline-expanding.js +++ b/js/inline-expanding.js @@ -15,6 +15,8 @@ onready(function(){ for(var i = 0; i < link.length; i++) { if(typeof link[i] == "object" && link[i].childNodes[0].src && link[i].className != 'file') { + link[i].childNodes[0].style.maxWidth = '95%'; + link[i].childNodes[0].style.maxHeight = '95%'; link[i].onclick = function(e) { if(e.which == 2) { return true;