From e2e0eec8d2b46b908bd0f40f2edca3d7100ade7c Mon Sep 17 00:00:00 2001 From: "Jinho, Lee" Date: Mon, 18 Dec 2017 22:45:00 +0900 Subject: [PATCH] Previous model height return problem fixed - 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/dali-toolkit/internal/text/text-controller.cpp b/dali-toolkit/internal/text/text-controller.cpp index f47b526..21e68e6 100755 --- a/dali-toolkit/internal/text/text-controller.cpp +++ b/dali-toolkit/internal/text/text-controller.cpp @@ -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; -- 2.7.4