Fix hoverend, auto is not enough on short pages.

This commit is contained in:
Nicolas Stepien 2011-07-19 23:10:42 +02:00
parent 861c9f00f3
commit d430055abb
2 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@
} }
}, },
hoverend: function(e) { hoverend: function(e) {
return ui.el.style.top = 'auto'; return ui.el.style.top = '999%';
} }
}; };
$ = function(selector, root) { $ = function(selector, root) {

View File

@ -182,7 +182,7 @@ ui =
el.style.right = clientWidth - clientX + 45 el.style.right = clientWidth - clientX + 45
hoverend: (e) -> hoverend: (e) ->
ui.el.style.top = 'auto' ui.el.style.top = '999%'
$ = (selector, root=d.body) -> $ = (selector, root=d.body) ->
root.querySelector selector root.querySelector selector