From 60dd502188b02489d7c46fc75fac9792625356cc Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 15 Jul 2015 04:12:44 -0700 Subject: [PATCH] Place image 25px from screen bottom to avoid being covered by URL. --- 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 2b78e2c93..10df149dc 100755 --- a/src/Images/ImageExpand.coffee +++ b/src/Images/ImageExpand.coffee @@ -221,7 +221,7 @@ ImageExpand = # Scroll to display full image. if file.scrollIntoView delete file.scrollIntoView - imageBottom = Header.getBottomOf file.fullImage + imageBottom = Math.min(doc.clientHeight - file.fullImage.getBoundingClientRect().bottom - 25, Header.getBottomOf file.fullImage) if imageBottom < 0 window.scrollBy 0, Math.min(-imageBottom, Header.getTopOf file.fullImage)