Highlight keyboard selector menu 71/245771/3
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 15 Oct 2020 12:28:18 +0000 (21:28 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 16 Oct 2020 03:09:34 +0000 (12:09 +0900)
Change-Id: I1b01cc5ae1708695d9c718ea846d09029265de81
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
im_setting_list/input_method_setting_list_ui.cpp

index 144670b..b33b3bf 100644 (file)
@@ -465,19 +465,6 @@ static void im_setting_list_keyboard_setting_item_sel_cb(void *data, Evas_Object
     isf_control_open_ime_option_window();
 }
 
-static void
-_elm_win_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
-{
-    Evas_Coord w = -1, h = -1;
-    Evas_Object *conform = (Evas_Object*)data;
-    if (conform) {
-        evas_object_geometry_get(obj, NULL, NULL, &w, &h);
-        if (w > 0 && h > 0) {
-            evas_object_resize(conform, w, h);
-        }
-    }
-}
-
 static Evas_Object *im_setting_list_conform_create(Evas_Object *parentWin)
 {
     Evas_Object *conform = elm_conformant_add(parentWin);
@@ -491,13 +478,9 @@ static Evas_Object *im_setting_list_conform_create(Evas_Object *parentWin)
     elm_object_part_content_set(conform, "elm.swallow.indicator_bg", bg);
     evas_object_show(bg);
 
-    Evas_Coord w = -1, h = -1;
-    elm_win_screen_size_get(parentWin, NULL, NULL, &w, &h);
-    if (w > 0 && h > 0) {
-        evas_object_resize(conform, w, h);
-    }
-    evas_object_event_callback_add(parentWin, EVAS_CALLBACK_RESIZE, _elm_win_resize_cb, conform);
+    elm_win_resize_object_add(parentWin, conform);
     evas_object_show(conform);
+
     return conform;
 }