add 25px bottom margin to Scroll into view functionality

This commit is contained in:
ccd0 2014-07-27 16:26:30 -07:00
parent c1e2034d12
commit feb2f1efb6

View File

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