mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
use different way of scrolling to answer to fix qt5 bug
This commit is contained in:
parent
9beed20dc0
commit
fe2c94b819
1 changed files with 2 additions and 1 deletions
|
@ -134,7 +134,8 @@ function _updateQA (q, answerMode, klass) {
|
|||
typeans.focus();
|
||||
}
|
||||
if (answerMode) {
|
||||
window.location = "#answer";
|
||||
var e = $("#answer");
|
||||
if (e[0]) { e[0].scrollIntoView(); }
|
||||
} else {
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue