[4.0] Previous model height return problem fixed 31/164331/1
authorJinho, Lee <jeano.lee@samsung.com>
Mon, 18 Dec 2017 13:45:00 +0000 (22:45 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Mon, 18 Dec 2017 13:45:00 +0000 (22:45 +0900)
 - 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: I72d6a6c56a8dd70aa438a6c37d686847028e75c7

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

index 70f8288..2c1f7fb 100755 (executable)
@@ -1939,6 +1939,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;