Revert "Delete resize for window." 22/48722/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 24 Sep 2015 01:31:33 +0000 (10:31 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 25 Sep 2015 09:38:56 +0000 (18:38 +0900)
This reverts commit c6c4f45d772414d6838055b5e87c58584c7d0ce5.

Change-Id: Ifae16357789ce72bb341d8a4b28e1f5c97eec130

im_setting_list/input_method_setting_list_ui.cpp
im_setting_selector/input_method_setting_selector_ui.cpp

index 83c57b90bb834f318a91b547e43d9889397fb6c9..3d179eab8a6ce82bef331c31a8e5df50f98c8b45 100644 (file)
@@ -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);
index 5b1d3f8ec13d777f288e1ecf15d35ca1f4deffd1..e3e1e883c415faf7e5c0527e5b4719889a9b513a 100644 (file)
@@ -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;
 }