textpath: update map when object's position is updated 68/171368/1 accepted/tizen/4.0/unified/20180309.064155 submit/tizen_4.0/20180309.013312
authorYoungbok Shin <youngb.shin@samsung.com>
Fri, 2 Mar 2018 04:44:23 +0000 (13:44 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Fri, 2 Mar 2018 04:46:19 +0000 (13:46 +0900)
Updating map in the smart move override function is not valid.
The position is not updated to the object's structure in the function.
It can be replaced with evas_map_util_object_move_sync_set() function.

@tizen_fix

Change-Id: Ic1e09887aa87437de2b1204fc58e762ed4e427c4

src/lib/efl_ui_textpath.c

index ff5b582..a1b547c 100644 (file)
@@ -252,6 +252,9 @@ _text_draw(Efl_Ui_Textpath_Data *pd)
         return;
      }
    map = evas_map_new(map_point_no);
+   /* TIZEN_ONLY(20180302): update map when object's position is updated */
+   evas_map_util_object_move_sync_set(map, EINA_TRUE);
+   /* END */
 
    w1 = w2 = 0;
    EINA_INLIST_FOREACH(pd->segments, seg)
@@ -621,8 +624,14 @@ EOLIAN static void
 _efl_ui_textpath_evas_object_smart_move(Eo *obj, Efl_Ui_Textpath_Data *pd, Evas_Coord x, Evas_Coord y)
 {
    eo_do_super(obj, MY_CLASS, evas_obj_smart_move(x, y));
+
+   /* TIZEN_ONLY(20180302): update map when object's position is updated
+    * Do Nothing. The position is not updated to the object in this function.
+    * Test with evas_object_geometry_get().
    _path_data_get(obj, pd, EINA_FALSE);
    _text_draw(pd);
+    */
+   /* END */
 }
 
 /*