Add GetHeightForWidth for text visual model 36/299336/1
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 26 Sep 2023 06:50:50 +0000 (15:50 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Tue, 26 Sep 2023 06:56:31 +0000 (15:56 +0900)
commit2497507eefb2ff82eb5a18ba875eae8cd8b6b346
treea075f9b05b0870d1cc6a8d68a7d74c17b180424a
parentda4f1bbf658462bebfc59e1e9c9c7dea7c4c6ab8
Add GetHeightForWidth for text visual model

Use visual model's GetHeightForWidth instead of GetLayoutSize.

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: I0494fb476964fb1207d35e3c8e6eb25ece972025
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/text/controller/text-controller-relayouter.cpp
dali-toolkit/internal/text/visual-model-impl.cpp
dali-toolkit/internal/text/visual-model-impl.h