Canvas text: fix ellipsis RTL handling
authorDaniel Hirt <daniel.hirt@samsung.com>
Mon, 1 Aug 2016 12:52:18 +0000 (15:52 +0300)
committerDaniel Hirt <daniel.hirt@samsung.com>
Wed, 31 Aug 2016 13:23:32 +0000 (16:23 +0300)
commit2d44738fae55f87c6f787c2b02e63b8a24fd270d
treefe6baa3977412dca866ea32538c8d07be566fbad
parentd88f08f7e92a06ce114466da41886463be58c8d8
Canvas text: fix ellipsis RTL handling

First, fixing ellipsis text positions: ellipsis items should be assigned the
text positions of the omitted text (while maintaining the formatting of the
last visual item). In the case where an entire item was rejected, it
will be assigned that item's text position. If an item was split, it will be
assigned the text position of the split portion.
The BiDi reorder code relies on properly-assigned text positions.

Second, fixing ellipsis handling: the width calc was only considering the
ellipsis item's width. However, if the ellipsis is placed as e.g. the first
visual item (such as in RTL cases), its advance value should've be considered,
instead.

Thanks Youngbok Shin for the test case and information.

@fix
src/lib/evas/canvas/evas_object_textblock.c
src/tests/evas/evas_test_textblock.c