Fixed issue where only the last line was aligned in the case of a multiline input text editor
If you try to ALIGNMENT after entering multilines, only the last line is aligned.
So when the _ALIGNMENT property is entered, we modify it to be a full aligned.
ex)
textEditor2 = TextEditor::New();
textEditor2.SetBackgroundColor( Color::CYAN );
textEditor2.SetProperty( TextEditor::Property::TEXT_COLOR, Color::YELLOW );
textEditor2.SetSize( 500.f, 500.f );
textEditor2.SetPosition( 900.f, 150.f );
textEditor2.SetAnchorPoint( AnchorPoint::TOP_LEFT );
textEditor2.SetProperty( TextEditor::Property::TEXT, "test test " );
stage.Add( textEditor2 );
Control control2 = Control::New();
control2.SetSize(80,80);
control2.SetBackgroundColor(Color::YELLOW);
control2.SetPosition(750,200);
control2.SetAnchorPoint( AnchorPoint::TOP_LEFT );
control2.TouchSignal().Connect(this, &HelloWorldController::OnTouch3);
stage.Add( control2 );
bool OnTouch3( Actor actor, const TouchData& touch )
{
textEditor2.SetProperty( TextEditor::Property::TEXT_COLOR, Color::RED );
textEditor2.SetColor(Color::BLUE );
textEditor2.SetProperty( TextEditor::Property::HORIZONTAL_ALIGNMENT, "END" );
return true;
}
Change-Id: Icc98d04d7c556a4d33b5de8640c2fc29587c1b35