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 f9445b51539c6840d1d8b3b1bb96f50cf55b54a4..53cd489d442d606e981955ab23df335b579cc17f 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  |