aboutsummaryrefslogtreecommitdiffstats
path: root/lib/domUtils.js
diff options
context:
space:
mode:
authorJez Ng2012-02-11 18:51:19 -0500
committerJez Ng2012-02-11 19:31:31 -0500
commit1715afe676ac0fdfb979de318c3f53dc72ca9d0d (patch)
tree996098b24f8dfeccd6b14b840021d435cf4c68bd /lib/domUtils.js
parent82ccce8d0936425ee16c6d432601c5ac781fb385 (diff)
downloadvimium-1715afe676ac0fdfb979de318c3f53dc72ca9d0d.tar.bz2
Show hints for links that are slightly out of the screen.
Closes #472.
Diffstat (limited to 'lib/domUtils.js')
-rw-r--r--lib/domUtils.js4
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)