Evas Text: Update text layout when ellipsis is changed without resize
authorYoungbok Shin <youngb.shin@samsung.com>
Tue, 16 Feb 2016 15:14:38 +0000 (17:14 +0200)
committerDaniel Hirt <daniel.hirt@samsung.com>
Tue, 16 Feb 2016 15:42:11 +0000 (17:42 +0200)
commit471c7635eed67509a24fc6dcc04de65622568f4c
tree8ab0443ce487b66dbfd9d32d8a27ec6e70344f44
parent0ef330a363eaefd2545d5ecbae1309655d2f1869
Evas Text: Update text layout when ellipsis is changed without resize

Summary:
When only ellipsis is changed from 0.0~1.0 to -1.0 without resize,
the text is never updated. Because, previous state for ellipsis is never kept
and used properly to check when Evas Text needs to be updated.

It does not have any effect when ellipsis is changed from -1.0 to 0.0~1.0.
Because, Evas text always resize itself according to its text size.
So, necessarily, Evas text object has to be resized to the smaller size.
Commonly, Edje will handle its size if Evas text needs to be ellipsized.
@fix

Test Plan: Test case is included.

Reviewers: tasn, woohyun, herdsman

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3448
src/lib/evas/canvas/evas_object_text.c
src/tests/evas/evas_test_text.c