diff options
| author | Jez Ng | 2012-01-09 16:47:17 +0800 |
|---|---|---|
| committer | Jez Ng | 2012-01-09 17:14:49 +0800 |
| commit | 34bc211a866e3623bdc461d4cf183b08bf229822 (patch) | |
| tree | c87926050262968dd1451825f823041e6c2af109 /vimiumFrontend.js | |
| parent | a89f2dbd45871487efb998efc466765a42f11311 (diff) | |
| download | vimium-34bc211a866e3623bdc461d4cf183b08bf229822.tar.bz2 | |
Consider all clientRects when checking for visibility.
Fixes issue #235.
Diffstat (limited to 'vimiumFrontend.js')
| -rw-r--r-- | vimiumFrontend.js | 3 |
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; |
