From 99a2786c5cd00b03c94ea21bfed33c41d7786c78 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 15 Oct 2011 00:19:13 +0200 Subject: [PATCH] d.body.clientHeight to fit with vertical/horizontal scrollbars. --- script.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.coffee b/script.coffee index de282e58b..112c4f2f2 100644 --- a/script.coffee +++ b/script.coffee @@ -2157,7 +2157,7 @@ imgExpand = $.prepend delform, controls resize: -> - imgExpand.style.innerHTML = ".fitheight img + img {max-height:#{innerHeight}px;}" + imgExpand.style.innerHTML = ".fitheight img + img {max-height:#{d.body.clientHeight}px;}" firstRun = init: ->