Place image 25px from screen bottom to avoid being covered by URL.
This commit is contained in:
parent
c6618c83f8
commit
60dd502188
@ -221,7 +221,7 @@ ImageExpand =
|
|||||||
# Scroll to display full image.
|
# Scroll to display full image.
|
||||||
if file.scrollIntoView
|
if file.scrollIntoView
|
||||||
delete 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
|
if imageBottom < 0
|
||||||
window.scrollBy 0, Math.min(-imageBottom, Header.getTopOf file.fullImage)
|
window.scrollBy 0, Math.min(-imageBottom, Header.getTopOf file.fullImage)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user