forked from enlightenment/efl
Evas textblock: Fixed "high" text size adjustments for multiple paragraphs.
This commit is contained in:
parent
5a55e5e56c
commit
5dc2d7c126
|
@ -3198,6 +3198,7 @@ _layout_line_finalize(Ctxt *c, Evas_Object_Textblock_Format *fmt)
|
|||
Evas_Object_Textblock_Item *it;
|
||||
Evas_Coord x = 0;
|
||||
|
||||
c->position = TEXTBLOCK_POSITION_ELSE;
|
||||
/* If there are no text items yet, calc ascent/descent
|
||||
* according to the current format. */
|
||||
if (c->maxascent + c->maxdescent == 0)
|
||||
|
@ -3273,7 +3274,6 @@ loop_advance:
|
|||
static void
|
||||
_layout_line_advance(Ctxt *c, Evas_Object_Textblock_Format *fmt)
|
||||
{
|
||||
c->position = TEXTBLOCK_POSITION_ELSE;
|
||||
_layout_line_finalize(c, fmt);
|
||||
_layout_line_new(c, fmt);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue