summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Hirt <hirt.danny@gmail.com>2017-11-01 19:29:18 +0200
committerCedric BAIL <cedric@osg.samsung.com>2017-11-10 10:29:53 -0800
commit941fe1ffbd29b42be4b4d62ec5a35727f19a0394 (patch)
tree24feb0f29572f518325458f814b8032328677021 /src
parent45d3614345dfd832a6332975960b75b51fb0afd1 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index 2fcd00b857..b44f0246fd 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -3929,6 +3929,12 @@ loop_advance:
3929 c->ln->y += c->o->style_pad.t; 3929 c->ln->y += c->o->style_pad.t;
3930 c->y += c->o->style_pad.t; 3930 c->y += c->o->style_pad.t;
3931 } 3931 }
3932
3933 if ((c->position == TEXTBLOCK_POSITION_END) ||
3934 (c->position == TEXTBLOCK_POSITION_SINGLE))
3935 {
3936 c->ln->h += c->o->style_pad.b;
3937 }
3932 } 3938 }
3933 3939
3934 /* Check current line's height is acceptable or not */ 3940 /* Check current line's height is acceptable or not */