aboutsummaryrefslogtreecommitdiffstats
path: root/linkHints.js
diff options
context:
space:
mode:
authorint32010-04-26 03:12:20 +0800
committerPhil Crosby2010-05-01 21:14:54 -0700
commit04d57ed2126442d3f4b4d24d51e9e925c7f11f57 (patch)
tree1c55c4fc1e4d10e9f60e76a5c1b6ab6df87857e5 /linkHints.js
parent9123deb1569dfc0335ae8e74d17d4e0667af45a2 (diff)
downloadvimium-04d57ed2126442d3f4b4d24d51e9e925c7f11f57.tar.bz2
Activate check for floated children if either dimension of the link is zero.
Previously both width and height had to be zero. However, I noticed a contrary case in firefox. While this may not arise in Chrome, I think that there's no harm in making the check criteria a little more general.
Diffstat (limited to 'linkHints.js')
-rw-r--r--linkHints.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/linkHints.js b/linkHints.js
index daedb7d6..771b0728 100644
--- a/linkHints.js
+++ b/linkHints.js
@@ -94,7 +94,7 @@ function getVisibleClickableElements() {
// If the link has zero dimensions, it may be wrapping visible
// but floated elements. Check for this.
- if (boundingRect.width == 0 && boundingRect.height == 0) {
+ if (boundingRect.width == 0 || boundingRect.height == 0) {
for (var j = 0; j < element.childNodes.length; j++) {
// check that the node is an element node