diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-22 16:57:26 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-22 16:57:26 +1000 |
| commit | 21cb95af2821c965fb8780046f3a5fc2959c3c65 (patch) | |
| tree | 387979f674c8874a8d37533cc0c4fedc952cac22 /js/inline-expanding.js | |
| parent | 92f9a4c5bac8a8dec73c5064a32227aaa2212aa9 (diff) | |
inline-expanding.js: don't expand larger than the window
Diffstat (limited to 'js/inline-expanding.js')
| -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; |
