Fix for pre-edit text. 36/70136/4
authorVictor Cebollada <v.cebollada@samsung.com>
Wed, 18 May 2016 07:42:11 +0000 (08:42 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Fri, 27 May 2016 08:37:14 +0000 (09:37 +0100)
commit677d489c37efac76c7449f7e22d66b3fc92c4af1
treec756fe6d798d4358f3fc018071e9261c77ccc422
parent1b0a5f5931b61343586de7cd62fd44793c79ae73
Fix for pre-edit text.

* When editing with predictive text enabled, the imf manager removes
  the current pre-edited text and inserts the new string.
  The new string can be longer if text is being added,
  or smaller if text is being removed.

  The text needs to be scrolled to the cursor position if text is smaller.

* Similarly, the text-controller can remove a group of characters when a
  ImfManager::DELETESURROUNDING event arrives. The text also needs to
  be scrolled to the cursor position.

* If text is not added at the end of the string, the text must not be scrolled
  unless the cursor becomes not visible.

Change-Id: I6ed4b9ea122cd0b8fac4111c732625bf636eb52d
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
dali-toolkit/internal/text/text-controller-impl.cpp
dali-toolkit/internal/text/text-controller-impl.h
dali-toolkit/internal/text/text-controller.cpp