From 8001f3e553269739d8fd42671b58677455302eb0 Mon Sep 17 00:00:00 2001 From: int3 Date: Mon, 3 May 2010 03:00:42 +0800 Subject: Fix link elimination boundaries --- linkHints.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkHints.js b/linkHints.js index 771b0728..fb47053d 100644 --- a/linkHints.js +++ b/linkHints.js @@ -124,8 +124,8 @@ function isVisible(element, boundingRect) { // Exclude links which have just a few pixels on screen, because the link hints won't show for them anyway. var zoomFactor = currentZoomLevel / 100.0; - if (boundingRect.bottom <= 4 || boundingRect.top * zoomFactor >= window.innerHeight - 4 || - boundingRect.left <= 0 || boundingRect.left * zoomFactor >= window.innerWidth - 4) + if (boundingRect.top < 0 || boundingRect.top * zoomFactor >= window.innerHeight - 4 || + boundingRect.left < 0 || boundingRect.left * zoomFactor >= window.innerWidth - 4) return false; if (boundingRect.width < 3 || boundingRect.height < 3) -- cgit v1.2.3