mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -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();
|
typeans.focus();
|
||||||
}
|
}
|
||||||
if (answerMode) {
|
if (answerMode) {
|
||||||
window.location = "#answer";
|
var e = $("#answer");
|
||||||
|
if (e[0]) { e[0].scrollIntoView(); }
|
||||||
} else {
|
} else {
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue