Evas Text: Update text layout when ellipsis is changed without resize 75/59675/1
authorYoungbok Shin <youngb.shin@samsung.com>
Tue, 16 Feb 2016 15:14:38 +0000 (17:14 +0200)
committerYoungbok Shin <youngb.shin@samsung.com>
Wed, 17 Feb 2016 08:55:37 +0000 (17:55 +0900)
commit5f963f478ad2db58117ad1ca0d5ef964b0c7e6cd
treee4ef6436d53eb170ec5fde5b968fcbb695be06bf
parent09f670521852f44fea47e13e32df69ed11186848
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

Conflicts:
src/tests/evas/evas_test_text.c

Change-Id: Id5c484152efbe0a4df723c4422127e46ad5213be
src/lib/evas/canvas/evas_object_text.c
src/tests/evas/evas_test_text.c