aboutsummaryrefslogtreecommitdiffstats
path: root/vimiumFrontend.js
diff options
context:
space:
mode:
authorJez Ng2012-01-09 16:47:17 +0800
committerJez Ng2012-01-09 17:14:49 +0800
commit34bc211a866e3623bdc461d4cf183b08bf229822 (patch)
treec87926050262968dd1451825f823041e6c2af109 /vimiumFrontend.js
parenta89f2dbd45871487efb998efc466765a42f11311 (diff)
downloadvimium-34bc211a866e3623bdc461d4cf183b08bf229822.tar.bz2
Consider all clientRects when checking for visibility.
Fixes issue #235.
Diffstat (limited to 'vimiumFrontend.js')
-rw-r--r--vimiumFrontend.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index d485163b..452e9f37 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -236,8 +236,7 @@ function focusInput(count) {
var currentInputBox = results.iterateNext();
if (!currentInputBox) { break; }
- var clientRect = currentInputBox.getClientRects()[0];
- if (!linkHints.isVisible(currentInputBox, clientRect))
+ if (linkHints.getVisibleClientRect(currentInputBox) === null)
continue;
lastInputBox = currentInputBox;