summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Gala <i.gala@samsung.com>2014-09-26 14:50:18 +0300
committerMykyta Biliavskyi <m.biliavskyi@samsung.com>2014-09-29 17:15:22 +0300
commit4602b0b8063ccb2c70c3f45e4f5bb731bc433172 (patch)
treea07c8c4ae8e6560d56144f7e6851dc366f2a1098
parent033a0802a6bb9a952e3ef0b31bf5447ab8c8a68e (diff)
Combobox: deleted automatical resing of expander
This commit fix uncorrectky work of combobox widget on KDE desktop
-rw-r--r--src/lib/ewe_combobox.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/ewe_combobox.c b/src/lib/ewe_combobox.c
index 11722bd..b996dd8 100644
--- a/src/lib/ewe_combobox.c
+++ b/src/lib/ewe_combobox.c
@@ -92,7 +92,6 @@ _exp_window_create(Evas **evas, Ewe_Combobox_Smart_Data *sd)
92 92
93 sd->expander = edje_object_add(*evas); 93 sd->expander = edje_object_add(*evas);
94 edje_object_file_set(sd->expander, EWE_THEME, "ewe/combobox/expander/default"); 94 edje_object_file_set(sd->expander, EWE_THEME, "ewe/combobox/expander/default");
95 elm_win_resize_object_add(win, sd->expander);
96 evas_object_show(sd->expander); 95 evas_object_show(sd->expander);
97 96
98 sd->scroller = elm_scroller_add(win); 97 sd->scroller = elm_scroller_add(win);
@@ -180,9 +179,15 @@ _ewe_combobox_expand(Evas_Object *obj)
180 } 179 }
181 180
182 if (window_width > combo_width) 181 if (window_width > combo_width)
183 evas_object_geometry_set(popup_win, combo_x, combo_y, window_width, expander_h); 182 {
183 evas_object_resize(sd->expander, window_width, expander_h);
184 evas_object_geometry_set(popup_win, combo_x, combo_y, window_width, expander_h);
185 }
184 else 186 else
185 evas_object_geometry_set(popup_win, combo_x, combo_y, combo_width, expander_h); 187 {
188 evas_object_resize(sd->expander, combo_width, expander_h);
189 evas_object_geometry_set(popup_win, combo_x, combo_y, combo_width, expander_h);
190 }
186 evas_object_smart_callback_call(sd->obj, "expanded", evas); 191 evas_object_smart_callback_call(sd->obj, "expanded", evas);
187} 192}
188 193