From c3d5c4aef4b89b74527bdca453560fe26c466271 Mon Sep 17 00:00:00 2001 From: cnjinhao Date: Wed, 28 Jan 2015 06:47:25 +0800 Subject: [PATCH] Fixed the textbox wrong caret position after resizing --- source/gui/widgets/textbox.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/gui/widgets/textbox.cpp b/source/gui/widgets/textbox.cpp index c43931ff..142e1444 100644 --- a/source/gui/widgets/textbox.cpp +++ b/source/gui/widgets/textbox.cpp @@ -142,6 +142,7 @@ namespace nana{ namespace drawerbase { { _m_text_area(arg.width, arg.height); refresh(graph); + editor_->reset_caret(); API::lazy_refresh(); }