Delete resize for window. 24/47824/1
authorshoum.chen@samsung.com <shoum.chen@samsung.com>
Wed, 9 Sep 2015 02:33:29 +0000 (10:33 +0800)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 9 Sep 2015 07:16:29 +0000 (16:16 +0900)
Change-Id: I6cf7d715fae035eedd4ccf0be217b3ec66eab6c4
Signed-off-by: shoum.chen@samsung.com <shoum.chen@samsung.com>
im_setting_list/input_method_setting_list_ui.cpp
im_setting_selector/input_method_setting_selector_ui.cpp

index c616d8c..777981a 100644 (file)
@@ -143,7 +143,6 @@ 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);
@@ -151,12 +150,7 @@ 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 == -1 || h == -1) {
-           LOGW("elm_win_screen_size_get() is failed\n");
-           return NULL;
-        }
-        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 a103d81..7743ec5 100644 (file)
@@ -57,7 +57,6 @@ static Evas_Object *
 im_setting_selector_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) {
@@ -66,12 +65,7 @@ im_setting_selector_main_window_create(const char *name, int app_type)
         elm_win_alpha_set(eo, EINA_TRUE);
         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 == -1 || h == -1) {
-           LOGW("elm_win_screen_size_get() is failed\n");
-           return NULL;
-        }
-        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);