diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-11 19:53:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-11 19:54:45 +0300 |
commit | 90de57479f88f8e99b44473a29dcaa9e8579612b (patch) | |
tree | 80e517b0a4d53d14f492f78235f37a0cc8e5915c /src/gui/widgets/textfield.cpp | |
parent | dcba44a20e622ec38d536fb03c0c8404e9399f80 (diff) | |
download | manaplus-90de57479f88f8e99b44473a29dcaa9e8579612b.tar.gz manaplus-90de57479f88f8e99b44473a29dcaa9e8579612b.tar.bz2 manaplus-90de57479f88f8e99b44473a29dcaa9e8579612b.tar.xz manaplus-90de57479f88f8e99b44473a29dcaa9e8579612b.zip |
Fix scrolling textfield.
Bug was introduced in commit a8b1e41599fd1f18fccc8f34ddca2bca33c4bf4f.
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r-- | src/gui/widgets/textfield.cpp | 2 |
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; |