cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=941fe1ffbd29b42be4b4d62ec5a35727f19a0394

commit 941fe1ffbd29b42be4b4d62ec5a35727f19a0394
Author: Daniel Hirt <[email protected]>
Date:   Wed Nov 1 19:29:18 2017 +0200

    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 <[email protected]>
---
 src/lib/evas/canvas/evas_object_textblock.c | 6 ++++++
 1 file changed, 6 insertions(+)

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:
              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 */

-- 


Reply via email to