Calculate a new height when full relayout needed 14/138614/1
authorJinho, Lee <jeano.lee@samsung.com>
Thu, 13 Jul 2017 03:03:21 +0000 (12:03 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Thu, 13 Jul 2017 03:03:21 +0000 (12:03 +0900)
Change-Id: Ifc7fc385e224abb5b85cc79e22b29b50ebb965f4

dali-toolkit/internal/text/text-controller.cpp

index f9445b5..53cd489 100644 (file)
@@ -1566,7 +1566,8 @@ float Controller::GetHeightForWidth( float width )
   ProcessModifyEvents();
 
   Size layoutSize;
-  if( fabsf( width - mImpl->mModel->mVisualModel->mControlSize.width ) > Math::MACHINE_EPSILON_1000 )
+  if( fabsf( width - mImpl->mModel->mVisualModel->mControlSize.width ) > Math::MACHINE_EPSILON_1000 ||
+                                                           mImpl->mTextUpdateInfo.mFullRelayoutNeeded )
   {
     // Operations that can be done only once until the text changes.
     const OperationsMask onlyOnceOperations = static_cast<OperationsMask>( CONVERT_TO_UTF32  |