Fix last entities properties not scrolling when keyboard raised

This commit is contained in:
David Rowe 2016-09-29 15:59:24 +13:00
parent e9a398472a
commit 8e44096981

View file

@ -25,12 +25,15 @@ function setUpKeyboardControl() {
}
var delta = this.getBoundingClientRect().bottom + 10 - (document.body.clientHeight - KEYBOARD_HEIGHT);
if (delta > 0) {
document.body.scrollTop += delta;
}
EventBridge.emitWebEvent("_RAISE_KEYBOARD");
if (delta > 0) {
setTimeout(function () {
document.body.scrollTop += delta;
}, 500); // Allow time for keyboard to be raised in QML.
}
isRaised = true;
}