From 90de57479f88f8e99b44473a29dcaa9e8579612b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 Jun 2012 19:53:09 +0300 Subject: Fix scrolling textfield. Bug was introduced in commit a8b1e41599fd1f18fccc8f34ddca2bca33c4bf4f. --- src/gui/widgets/textfield.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2