From: raster Date: Sun, 25 Apr 2010 13:05:45 +0000 (+0000) Subject: and make items work properly. X-Git-Tag: 2.0_alpha~240^2~1886 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a109922277e33dde28b306e90759b62dc52dcf23;p=framework%2Fuifw%2Fevas.git and make items work properly. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@48306 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index fdfbe9d..dbe65cc 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -1471,13 +1471,13 @@ _layout_line_advance(Ctxt *c, Evas_Object_Textblock_Format *fmt) fi->y = -c->maxascent; } else - fi->y = -c->maxascent; + fi->y = -(fi->h - c->maxdescent); break; case VSIZE_ASCENT: if (fi->h > c->maxascent) { c->maxascent = fi->h; - fi->y = -c->maxascent; + fi->y = -fi->h; } else fi->y = -fi->h; @@ -2183,9 +2183,9 @@ _layout(const Evas_Object *obj, int calc_only, int w, int h, int *w_ret, int *h_ p = strstr(s, " vsize="); if (p) { - p += 8; - if (!strcmp(p, "full")) vsize = VSIZE_FULL; - else if (!strcmp(p, "ascent")) vsize = VSIZE_ASCENT; + p += 7; + if (!strncmp(p, "full", 4)) vsize = VSIZE_FULL; + else if (!strncmp(p, "ascent", 6)) vsize = VSIZE_ASCENT; } p = strstr(s, " size="); if (p)