evas textblock: fix top/bottom valign tag reversed issue
authorYoungbok Shin <youngb.shin@samsung.com>
Tue, 4 Apr 2017 09:36:41 +0000 (18:36 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 4 Apr 2017 09:36:42 +0000 (18:36 +0900)
commit5da69d7ac9b1ca5084a605dd5373ada9f17328ea
treeb268ffa7237ed946ba7ee1c2e817127930d4abb7
parent58d52a23097416c0b935edf070723aafe6c2239c
evas textblock: fix top/bottom valign tag reversed issue

Summary:
valign tag is for handling vertical align according to line's height and
text's height. But, it worked in a line which has only one font and
one font size, too. And the result was abnormal depending its font.
The line's height is [ascent + descent]. But, Textblock uses max ascent and
items's height(could be used max ascent + max descent according to its position)
when Textblock calculates item's yoff.
So, If Textblock calculate yoff based on line's height,
it should use only ascent and descent instead of max ascent and max descent.
@fix

Test Plan: Will attached in comment section.

Reviewers: raster, herdsman, jpeg, woohyun

Reviewed By: raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D4760
src/lib/evas/canvas/evas_object_textblock.c