GetLineCount() after GetTextDirection() returns wrong value.
ex)
I expect the line count to come out of 3.
However, after GetProperty(TEXT_DIRECTION), line count is 1.
labelLine = TextLabel::New();
labelLine.SetSize( 400, 200 );
labelLine.SetParentOrigin(ParentOrigin::TOP_LEFT);
labelLine.SetAnchorPoint(AnchorPoint::TOP_LEFT);
labelLine.SetPosition( 830.f, 800.f);
labelLine.SetProperty(TextLabel::Property::POINT_SIZE, 23.f);
labelLine.SetProperty(Dali::Toolkit::TextLabel::Property::TEXT, "Original text Original text Original text Original text");
labelLine.SetProperty( TextLabel::Property::MULTI_LINE, true );
stage.Add( labelLine );
stage.KeyEventSignal().Connect( this, &HelloWorldController::LineCount );
void LineCount( const KeyEvent& event )
{
if( event.state == KeyEvent::Down )
{
// issue
labelLine.SetProperty(Dali::Toolkit::TextLabel::Property::TEXT, "Changed1 text Changed text Changed text Changed text");
DALI_LOG_ERROR("lineCount #11: %d \n",labelLine.GetProperty<int>( TextLabel::Property::LINE_COUNT ));
labelLine.GetProperty< int >( DevelTextLabel::Property::TEXT_DIRECTION );
DALI_LOG_ERROR("lineCount #22: %d \n",labelLine.GetProperty<int>( TextLabel::Property::LINE_COUNT ));
}
}
Change-Id: I197b97aa6f131930627bbef0438950c9679fd58f