diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-22 16:57:26 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-05-05 18:13:08 +1000 |
| commit | 2f35323de5b563cc95278c190f2bb4bfee44c667 (patch) | |
| tree | 4dbaca046e6b7113bd8cb0c0274fb4d5bf3cf810 | |
| parent | 24cc47791cb5b3bdc50e25e79b81adab5076618a (diff) | |
inline-expanding.js: don't expand larger than the window
| -rw-r--r-- | js/inline-expanding.js | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
