Fix incorrect calc of GetHeightForWidth in TextLabel 88/273988/3
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 19 Apr 2022 15:05:20 +0000 (00:05 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Tue, 19 Apr 2022 16:14:20 +0000 (01:14 +0900)
commitabc8459e18c5a7f8730c9493885fd067126520cb
tree5d2cd3147282060da05002e1e05fbc7b5bb26dfa
parent4adbc5c7f33b2fa3563919293b425bbbb45f663f
Fix incorrect calc of GetHeightForWidth in TextLabel

the recent change of CalculateLayoutSizeOnRequiredControllerSize()
causes compatibility issues in TextLabel.

avoiding backup/restore of visual-model fields after GetNaturalSize/GetHeightForWidth is
usually to resolve broken index of editable controls.

this patch DoRelayout() with minimal operation when non-editable case.
it's almost like legacy code.

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