add the timeout back in for older qt versions

This commit is contained in:
Damien Elmes 2012-04-07 18:01:03 +09:00
parent 8f9a20c5a5
commit 3828c43cd8

View file

@ -97,8 +97,8 @@ function onFocus(elem) {
py.run("focus:" + currentField.id.substring(1));
// don't adjust cursor on mouse clicks
if (mouseDown) { return; }
// move cursor
caretToEnd();
// need to do this in a timeout for older qt versions
setTimeout(function () { caretToEnd() }, 1);
// scroll if bottom of element off the screen
function pos(obj) {
var cur = 0;