From: Jinho, Lee Date: Mon, 18 Dec 2017 13:45:00 +0000 (+0900) Subject: Previous model height return problem fixed X-Git-Tag: dali_1.3.23~5^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=e2e0eec8d2b46b908bd0f40f2edca3d7100ade7c 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 --- 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;