Place image 25px from screen bottom to avoid being covered by URL.

This commit is contained in:
ccd0 2015-07-15 04:12:44 -07:00
parent c6618c83f8
commit 60dd502188

View File

@ -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)