From c4c80ec3c653848ee08094db8748d41682d5ac92 Mon Sep 17 00:00:00 2001 From: Tae-Hwan Kim Date: Sat, 23 Mar 2013 17:12:23 +0900 Subject: [PATCH] [Map] Update overlays when calculating map object. This can fix overlay place problem when external engine (eg. nokia) is used Change-Id: I51d44406e5ef80560ce46987ad269d56ed28f1c8 --- src/lib/elm_map.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib/elm_map.c b/src/lib/elm_map.c index 26cea4c..26b8b81 100644 --- a/src/lib/elm_map.c +++ b/src/lib/elm_map.c @@ -4493,6 +4493,15 @@ _elm_map_smart_del(Evas_Object *obj) } static void +_elm_map_smart_calculate(Evas_Object *obj) +{ + ELM_MAP_DATA_GET(obj, sd); + + if (strcmp(sd->engine->name, INTERNAL_ENGINE_NAME)) + _overlay_place(sd); +} + +static void _elm_map_smart_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y) @@ -4545,6 +4554,8 @@ _elm_map_smart_set_user(Elm_Map_Smart_Class *sc) { ELM_WIDGET_CLASS(sc)->base.add = _elm_map_smart_add; ELM_WIDGET_CLASS(sc)->base.del = _elm_map_smart_del; + ELM_WIDGET_CLASS(sc)->base.calculate = _elm_map_smart_calculate; + ELM_WIDGET_CLASS(sc)->base.move = _elm_map_smart_move; ELM_WIDGET_CLASS(sc)->base.resize = _elm_map_smart_resize; ELM_WIDGET_CLASS(sc)->base.member_add = _elm_map_smart_member_add; -- 2.7.4