[Tizen] Set mScrollAfterUpdatePosition to true when you get the keyboard forcus. 22/192622/1 accepted/tizen/5.0/unified/20181108.074429 submit/tizen_5.0/20181107.063823
authorJoogab Yun <joogab.yun@samsung.com>
Wed, 7 Nov 2018 04:18:30 +0000 (13:18 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Wed, 7 Nov 2018 05:20:48 +0000 (14:20 +0900)
commita338341cab7c1aabf12ceb640751cf4ec7a49aa0
tree585a9c459aceedd91e6a4a84bb28ffa32e31c379
parentd8c9662115e4a003e2c3d1b88d7c8f0685bdcc18
[Tizen] Set mScrollAfterUpdatePosition to true when you get the keyboard forcus.

- The cursor position is not correctly displayed when The text field is
focus out and then focus in.

[sample]
     Stage stage = Dali::Stage::GetCurrent();
     stage.SetBackgroundColor(Color::WHITE);
     stage.KeyEventSignal().Connect(this, &HelloWorldController::OnKeyEvent);

      test1 = TextField::New( );
      test1.SetProperty( TextField::Property::TEXT,"Abcdefghijklmnopqrstuvw Abcdefghijklmnopqrstuvw Abcdefghijklmnopqrstuvw" );
      test1.SetSize( 400, 50 );
      test1.SetPosition(50, 80);
      test1.SetParentOrigin(ParentOrigin::TOP_LEFT);
      test1.SetAnchorPoint(AnchorPoint::TOP_LEFT);
      test1.SetProperty(TextField::Property::ELLIPSIS, true);
      test1.SetProperty( TextField::Property::TEXT_COLOR, Color::RED );
      stage.Add( test1 );

      test1.SetKeyboardFocusable(true);

void OnKeyEvent(const KeyEvent& event)
{
  if(event.state == KeyEvent::Down)
  {
    if(event.keyPressedName == "1") {
      KeyboardFocusManager::Get().SetCurrentFocusActor( test1 );
    }
  }
}

Change-Id: I3e83998523107f8b64cdce891fbcd17850724df8
dali-toolkit/internal/text/text-controller.cpp