focus reltag text area when partially on screen as well

This commit is contained in:
Toks
2013-05-16 14:05:47 -04:00
parent 55ceb19244
commit 680c1c7a1c

View File

@@ -226,7 +226,7 @@
Danbooru.RelatedTag.process_artist(Danbooru.RelatedTag.recent_artist);
}
if ($(window).scrollTop() <= $field.offset().top) {
if ($(window).scrollTop() <= $field.offset().top + $field.outerHeight()) {
$field.focus();
}