don't need this condition anymore

This commit is contained in:
ccd0 2014-07-27 16:23:48 -07:00
parent 28ad96448f
commit c1e2034d12

View File

@ -199,8 +199,7 @@ ImageExpand =
if file.scrollIntoView
delete file.scrollIntoView
imageBottom = Header.getBottomOf file.fullImage
imageHeight = file.fullImage.getBoundingClientRect().height
if imageBottom + imageHeight >= 0 and imageBottom < 0
if imageBottom < 0
window.scrollBy 0, Math.min(-imageBottom, Header.getTopOf file.fullImage)
if file.isVideo