diff options
| author | Jez Ng | 2012-02-11 18:51:19 -0500 |
|---|---|---|
| committer | Jez Ng | 2012-02-11 19:31:31 -0500 |
| commit | 1715afe676ac0fdfb979de318c3f53dc72ca9d0d (patch) | |
| tree | 996098b24f8dfeccd6b14b840021d435cf4c68bd | |
| parent | 82ccce8d0936425ee16c6d432601c5ac781fb385 (diff) | |
| download | vimium-1715afe676ac0fdfb979de318c3f53dc72ca9d0d.tar.bz2 | |
Show hints for links that are slightly out of the screen.
Closes #472.
| -rw-r--r-- | lib/domUtils.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/domUtils.js b/lib/domUtils.js index 159867d9..cfb1202b 100644 --- a/lib/domUtils.js +++ b/lib/domUtils.js @@ -41,8 +41,8 @@ var domUtils = { var clientRectsLength = clientRects.length; for (var i = 0; i < clientRectsLength; i++) { - if (clientRects[i].top < 0 || clientRects[i].top >= window.innerHeight - 4 || - clientRects[i].left < 0 || clientRects[i].left >= window.innerWidth - 4) + if (clientRects[i].top < -2 || clientRects[i].top >= window.innerHeight - 4 || + clientRects[i].left < -2 || clientRects[i].left >= window.innerWidth - 4) continue; if (clientRects[i].width < 3 || clientRects[i].height < 3) |
