Fix GetHeightForWidth for text controller 04/299204/3
authorBowon Ryu <bowon.ryu@samsung.com>
Thu, 21 Sep 2023 10:06:54 +0000 (19:06 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Mon, 25 Sep 2023 11:16:13 +0000 (20:16 +0900)
commitda9f7b93ae00d0aa64a959549ed9da3469a49e46
tree1a816ae43b1f07033162d0973bf5e8789dd21ac1
parenta5b90e510f5924e04a8c961a960ac526938c834a
Fix GetHeightForWidth for text controller

In the case of text label,
the height of the layout is used when returning the cached value of GetHeightForWidth.

But, this value is the height of the layout that has been Ellipsis processed.
It's not the height of the entire Text.

So, the intended height cannot be obtained.

This patch simply stores calculated values.

Change-Id: Ia5d06bdac39556776749de3e3078a3a7e230c36c
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/text/controller/text-controller-impl.h
dali-toolkit/internal/text/controller/text-controller-relayouter.cpp