summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-11 19:53:09 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-11 19:54:45 +0300
commit90de57479f88f8e99b44473a29dcaa9e8579612b (patch)
tree80e517b0a4d53d14f492f78235f37a0cc8e5915c
parentdcba44a20e622ec38d536fb03c0c8404e9399f80 (diff)
downloadmanaplus-90de57479f88f8e99b44473a29dcaa9e8579612b.tar.gz
manaplus-90de57479f88f8e99b44473a29dcaa9e8579612b.tar.bz2
manaplus-90de57479f88f8e99b44473a29dcaa9e8579612b.tar.xz
manaplus-90de57479f88f8e99b44473a29dcaa9e8579612b.zip
Fix scrolling textfield.
Bug was introduced in commit a8b1e41599fd1f18fccc8f34ddca2bca33c4bf4f.
-rw-r--r--src/gui/widgets/textfield.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index 6929a80a2..5dc0d4a6f 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -207,6 +207,7 @@ void TextField::keyPressed(gcn::KeyEvent &keyEvent)
mText.insert(mCaretPosition, std::string(buf));
mCaretPosition += 1;
keyEvent.consume();
+ fixScroll();
if (mSendAlwaysEvents)
distributeActionEvent();
return;
@@ -238,6 +239,7 @@ void TextField::keyPressed(gcn::KeyEvent &keyEvent)
mText.insert(mCaretPosition, std::string(buf, buf + len));
mCaretPosition += len;
keyEvent.consume();
+ fixScroll();
if (mSendAlwaysEvents)
distributeActionEvent();
return;