This is a hotfix for side effect on Scrolling, LineWrap and Invalid position of curso... 79/255379/14
authorShrouq Sabah <s.sabah@samsung.com>
Wed, 17 Mar 2021 13:59:03 +0000 (15:59 +0200)
committerShrouq Sabah <s.sabah@samsung.com>
Thu, 22 Apr 2021 12:38:39 +0000 (15:38 +0300)
commit9cae10e14d431366534015e7df36599c3836228e
tree9e4f740dd2947e9722cfaa3a79dfe22d915d6251
parent1cef647fe405dc3f2f5b05547bf9e31ae3858ea4
This is a hotfix for side effect on Scrolling, LineWrap and Invalid position of cursor in TextEditor after calling GetNaturalSize or GetHeightForWidth.

The number of lines and glyph-positions in visualModel have been changed by calling DoRelayout with size does not equal actualControlSize.

Solution: Store the mLines and mGlyphPositions from visualModel so that they can be restored later on with no modifications made on them.

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