Fix the LineCount issue when text is changed. 57/259357/2
authorShrouq Sabah <s.sabah@samsung.com>
Sun, 6 Jun 2021 12:51:36 +0000 (15:51 +0300)
committershrouq Sabah <s.sabah@samsung.com>
Sun, 6 Jun 2021 13:43:32 +0000 (13:43 +0000)
commit748d65f75494fb5c774f3b391da0f6d437619b24
treea82f1ead2c16ba717d1a04a38daeffef6d1be1dc
parent45cf60c78941336e954d7d8e8393ee2338ff9763
Fix the LineCount issue when text is changed.

There is an issue with LineCount of TextLabel and TextEditor.
The issue is that if you set Text in TextLabel and do GetLineCount, an incorrect LineCount is returned.
This issue related to GetHeightForWidth which called in Controller::GetLineCount(float width).

Change-Id: Ia0cc5737432080fbd925bc6e655062f023a1c133
automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp
automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp
dali-toolkit/internal/text/text-controller-relayouter.cpp