mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
strip trailing whitespace
This commit is contained in:
parent
cac5f9306f
commit
07d0d1ef80
1 changed files with 2 additions and 2 deletions
|
@ -98,9 +98,9 @@ function onFocus(elem) {
|
|||
return cur;
|
||||
}
|
||||
var y = pos(elem);
|
||||
if ((window.pageYOffset+window.innerHeight) < (y+elem.offsetHeight))
|
||||
if ((window.pageYOffset+window.innerHeight) < (y+elem.offsetHeight))
|
||||
window.scroll(0,y+elem.offsetHeight-window.innerHeight);
|
||||
else if (window.pageYOffset > y)
|
||||
else if (window.pageYOffset > y)
|
||||
window.scroll(0, y-15);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue