use different way of scrolling to answer to fix qt5 bug

This commit is contained in:
Damien Elmes 2014-03-07 10:19:18 +09:00
parent 9beed20dc0
commit fe2c94b819

View file

@ -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);
}