evas textblock: fix top/bottom valign tag reversed issue 69/126169/1
authorYoungbok Shin <youngb.shin@samsung.com>
Tue, 4 Apr 2017 09:36:41 +0000 (18:36 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Thu, 20 Apr 2017 09:27:45 +0000 (18:27 +0900)
commitc0c34b33cb660b923d70a30568a6f889abeedd7d
tree3a900a19c636360aecec27fce519f98da67a586d
parenta4126c13c22ee1cdf7822093fd22565deaf3092b
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

Change-Id: I05a552f230dc821d8d749fc05139967c7c82e81a
src/lib/evas/canvas/evas_object_textblock.c