From: Jihoon Kim Date: Thu, 24 Sep 2015 01:31:33 +0000 (+0900) Subject: Revert "Delete resize for window." X-Git-Tag: submit/tizen/20150925.105313~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03ea158de30c6258eccfe1eee061f01bcd7fa4e3;p=platform%2Fcore%2Fuifw%2Finputmethod-setting.git Revert "Delete resize for window." This reverts commit c6c4f45d772414d6838055b5e87c58584c7d0ce5. Change-Id: Ifae16357789ce72bb341d8a4b28e1f5c97eec130 --- diff --git a/im_setting_list/input_method_setting_list_ui.cpp b/im_setting_list/input_method_setting_list_ui.cpp index 83c57b9..3d179ea 100644 --- a/im_setting_list/input_method_setting_list_ui.cpp +++ b/im_setting_list/input_method_setting_list_ui.cpp @@ -89,6 +89,7 @@ static Evas_Object * im_setting_list_main_window_create(const char *name, int app_type) { Evas_Object *eo = NULL; + int w = -1, h = -1; eo = elm_win_add(NULL, name, ELM_WIN_BASIC); if (eo) { elm_win_title_set(eo, name); @@ -96,7 +97,10 @@ im_setting_list_main_window_create(const char *name, int app_type) elm_win_alpha_set(eo, EINA_FALSE); elm_win_conformant_set(eo, EINA_TRUE); elm_win_autodel_set(eo, EINA_TRUE); - + elm_win_screen_size_get(eo, NULL, NULL, &w, &h); + if (w > 0 && h > 0) { + evas_object_resize(eo, w, h); + } if (app_type != APP_TYPE_SETTING_NO_ROTATION) { int rots[4] = {0, 90, 180, 270}; elm_win_wm_rotation_available_rotations_set(eo, rots, 4); diff --git a/im_setting_selector/input_method_setting_selector_ui.cpp b/im_setting_selector/input_method_setting_selector_ui.cpp index 5b1d3f8..e3e1e88 100644 --- a/im_setting_selector/input_method_setting_selector_ui.cpp +++ b/im_setting_selector/input_method_setting_selector_ui.cpp @@ -58,6 +58,7 @@ im_setting_selector_main_window_create(const char *name) { int rots[4] = {0, 90, 180, 270}; Evas_Object *eo = NULL; + int w = -1, h = -1; eo = elm_win_add(NULL, name, ELM_WIN_BASIC); if (eo) { @@ -67,6 +68,10 @@ im_setting_selector_main_window_create(const char *name) elm_win_conformant_set(eo, EINA_TRUE); elm_win_autodel_set(eo, EINA_TRUE); elm_win_wm_rotation_available_rotations_set(eo, rots, 4); + elm_win_screen_size_get(eo, NULL, NULL, &w, &h); + if (w > 0 && h > 0) { + evas_object_resize(eo, w, h); + } } return eo; }