edje: add missing initialization code for Tizen only feature - valign 43/165743/1
authorYoungbok Shin <youngb.shin@samsung.com>
Wed, 3 Jan 2018 13:25:39 +0000 (22:25 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Wed, 3 Jan 2018 13:25:39 +0000 (22:25 +0900)
@tizen_fix

Change-Id: Ibada49e943b076963594c510bfe13d5a44aa541b

src/lib/edje/edje_edit.c
src/lib/edje/edje_load.c

index c0a690a..f5e2e5e 100644 (file)
@@ -3259,6 +3259,13 @@ _edje_edit_real_part_add(Evas_Object *obj, const char *name, Edje_Part_Type type
         rp->type = EDJE_RP_TYPE_TEXT;
         rp->typedata.text = calloc(1, sizeof(Edje_Real_Part_Text));
         rp->object = evas_object_textblock_add(ed->base.evas);
+        /***********************************************************************************
+         * TIZEN_ONLY_FEATURE: API for handling text properties of Edje                    *
+         ***********************************************************************************/
+        if (rp->typedata.text) rp->typedata.text->valign = -1.0;
+        /*******
+         * END *
+         *******/
      }
    else if (ep->type == EDJE_PART_TYPE_BOX)
      {
index 2ab005b..1765eb6 100644 (file)
@@ -970,6 +970,14 @@ _edje_object_file_set_internal(Evas_Object *obj, const Eina_File *file, const ch
                        rp->type = EDJE_RP_TYPE_TEXT;
                        rp->typedata.text = calloc(1, sizeof(Edje_Real_Part_Text));
                        if (!rp->typedata.text) memerr = EINA_TRUE;
+                       /***********************************************************************************
+                        * TIZEN_ONLY_FEATURE: API for handling text properties of Edje                    *
+                        ***********************************************************************************/
+                       else rp->typedata.text->valign = -1.0;
+                       /*******
+                        * END *
+                        *******/
+
                        break;
 
                      case EDJE_PART_TYPE_GROUP: