From d430055abbd802193ec8ff582d104668812e23fa Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 19 Jul 2011 23:10:42 +0200 Subject: [PATCH] Fix hoverend, auto is not enough on short pages. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index fe9e4c1fb..ee37e74b8 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -267,7 +267,7 @@ } }, hoverend: function(e) { - return ui.el.style.top = 'auto'; + return ui.el.style.top = '999%'; } }; $ = function(selector, root) { diff --git a/script.coffee b/script.coffee index 702fef843..bad4f1ce8 100644 --- a/script.coffee +++ b/script.coffee @@ -182,7 +182,7 @@ ui = el.style.right = clientWidth - clientX + 45 hoverend: (e) -> - ui.el.style.top = 'auto' + ui.el.style.top = '999%' $ = (selector, root=d.body) -> root.querySelector selector