Evas Textblock: Fix ellipsis when textblock is resized to formatted h. 71/56171/1
authorYoungbok Shin <youngb.shin@samsung.com>
Mon, 4 Jan 2016 15:00:56 +0000 (15:00 +0000)
committerYoungbok Shin <youngb.shin@samsung.com>
Tue, 5 Jan 2016 06:52:04 +0000 (15:52 +0900)
commit412465fa2457d7c325f488cc62e71c39c7ba2fb6
treed9347e6b259ba7ddad86ebc830f844bec783dce7
parentbed65fdd3ad8f9f5d8523812e1807dde819b6ee7
Evas Textblock: Fix ellipsis when textblock is resized to formatted h.

Summary:
it->h is sum of max ascent and max descent. It shouldn't be used
when handle ellipsis. Because, Evas Textblock uses these values for
each lines differently according to its location.
(start, end, else, single)
So, for handling ellipsis exactly, it has to be fixed.

Test Plan: A test case is included in Evas Test suite.

Reviewers: woohyun, tasn, herdsman

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3475

Change-Id: I91a1daa2253fc528189c791f52153adf7530013f
src/lib/evas/canvas/evas_object_textblock.c
src/tests/evas/evas_test_textblock.c