Fix: The last line of the text overlaps with the text-editor's border/edge 78/265378/3
authorShrouq Sabah <s.sabah@samsung.com>
Sun, 17 Oct 2021 14:09:35 +0000 (17:09 +0300)
committerShrouq Sabah <s.sabah@samsung.com>
Thu, 21 Oct 2021 08:13:24 +0000 (11:13 +0300)
commit2c9abc8a3797a3317e0de7c23b1a15424facefb7
tree3806dfe2019aa0357bb07b131bcfcae8ca271f0f
parent615fc68a4f64bb14b73358d2eb551abc446669ff
Fix: The last line of the text overlaps with the text-editor's border/edge

This issue appears when ellipsis with start position is used with a large font.

textEditor.SetProperty(TextEditor::Property::POINT_SIZE, 25);
textEditor.SetProperty(Dali::Toolkit::DevelTextEditor::Property::ELLIPSIS, true);
textEditor.SetProperty(Dali::Toolkit::DevelTextEditor::Property::ELLIPSIS_POSITION, Dali::Toolkit::DevelText::EllipsisPosition::START);

Solution: Fixed early exit of loop that shift lines to up if ellipsis and multi lines and set ellipses of first line to true.

Change-Id: Ib08ee17309058bc006c0bd3867c00a10745407bc
automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Ellipsis.cpp
dali-toolkit/internal/text/layouts/layout-engine.cpp