From 5311e3de70f20ffd1ffcb429e1492fcb6b66f521 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 2 Jun 2011 14:02:31 +0000 Subject: [PATCH] Evas textblock: Fixed min size calculation with right aligned paragraphs. SVN revision: 59899 --- legacy/evas/src/lib/canvas/evas_object_textblock.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c index 604343c..7ccc369 100644 --- a/legacy/evas/src/lib/canvas/evas_object_textblock.c +++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c @@ -2479,16 +2479,16 @@ loop_advance: c->ln->x = c->marginl + c->o->style_pad.l; } + c->par->h = c->ln->y + c->ln->h; + if (c->ln->w > c->par->w) + c->par->w = c->ln->w; + { - Evas_Coord new_wmax = c->ln->x + c->ln->w + + Evas_Coord new_wmax = c->par->w + c->marginl + c->marginr - (c->o->style_pad.l + c->o->style_pad.r); if (new_wmax > c->wmax) c->wmax = new_wmax; } - - c->par->h = c->ln->y + c->ln->h; - if (c->ln->w + c->ln->x > c->par->w) - c->par->w = c->ln->x + c->ln->w; } /** -- 2.7.4