From c1e2034d120184b14353c26bb1992e1bea02592e Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 27 Jul 2014 16:23:48 -0700 Subject: [PATCH] don't need this condition anymore --- src/Images/ImageExpand.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Images/ImageExpand.coffee b/src/Images/ImageExpand.coffee index ef1510035..c75d69776 100755 --- a/src/Images/ImageExpand.coffee +++ b/src/Images/ImageExpand.coffee @@ -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