Canvas text: adjust bottom padding at edge of text
Now the edges include both the top AND bottom paddings. Also fixes vertical alignment. Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
45d3614345
commit
941fe1ffbd
|
@ -3929,6 +3929,12 @@ loop_advance:
|
|||
c->ln->y += c->o->style_pad.t;
|
||||
c->y += c->o->style_pad.t;
|
||||
}
|
||||
|
||||
if ((c->position == TEXTBLOCK_POSITION_END) ||
|
||||
(c->position == TEXTBLOCK_POSITION_SINGLE))
|
||||
{
|
||||
c->ln->h += c->o->style_pad.b;
|
||||
}
|
||||
}
|
||||
|
||||
/* Check current line's height is acceptable or not */
|
||||
|
|
Loading…
Reference in New Issue