From feb2f1efb643924b9df0d8367f81bc64295c505f Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 27 Jul 2014 16:26:30 -0700 Subject: [PATCH] add 25px bottom margin to Scroll into view functionality --- src/Images/ImageExpand.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Images/ImageExpand.coffee b/src/Images/ImageExpand.coffee index c75d69776..e0a91bdbe 100755 --- a/src/Images/ImageExpand.coffee +++ b/src/Images/ImageExpand.coffee @@ -198,7 +198,7 @@ ImageExpand = # Scroll to display full image. if file.scrollIntoView delete file.scrollIntoView - imageBottom = Header.getBottomOf file.fullImage + imageBottom = Header.getBottomOf(file.fullImage) - 25 if imageBottom < 0 window.scrollBy 0, Math.min(-imageBottom, Header.getTopOf file.fullImage)