Previous model height return problem fixed 73/166373/2
authorJinho, Lee <jeano.lee@samsung.com>
Mon, 18 Dec 2017 13:45:00 +0000 (22:45 +0900)
committerMinho Sun <minho.sun@samsung.com>
Fri, 20 Apr 2018 00:06:00 +0000 (00:06 +0000)
 - GetHeightForWidth is returend text layout size.
 - In two consecutive calls, this function return the previous height value, not the height value of the new model after the first time.

Change-Id: I71e8f841fd0cb0c6b816b9996344c7cd0d27530e

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

index f47b526..21e68e6 100755 (executable)
@@ -1983,6 +1983,7 @@ float Controller::GetHeightForWidth( float width )
 
     // Clear the update info. This info will be set the next time the text is updated.
     mImpl->mTextUpdateInfo.Clear();
+    mImpl->mTextUpdateInfo.mClearAll = true;
 
     // Restore the actual control's width.
     mImpl->mModel->mVisualModel->mControlSize.width = actualControlWidth;