don't need this condition anymore
This commit is contained in:
parent
28ad96448f
commit
c1e2034d12
@ -199,8 +199,7 @@ ImageExpand =
|
|||||||
if file.scrollIntoView
|
if file.scrollIntoView
|
||||||
delete file.scrollIntoView
|
delete file.scrollIntoView
|
||||||
imageBottom = Header.getBottomOf file.fullImage
|
imageBottom = Header.getBottomOf file.fullImage
|
||||||
imageHeight = file.fullImage.getBoundingClientRect().height
|
if imageBottom < 0
|
||||||
if imageBottom + imageHeight >= 0 and imageBottom < 0
|
|
||||||
window.scrollBy 0, Math.min(-imageBottom, Header.getTopOf file.fullImage)
|
window.scrollBy 0, Math.min(-imageBottom, Header.getTopOf file.fullImage)
|
||||||
|
|
||||||
if file.isVideo
|
if file.isVideo
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user