[Button] bug fix on _sizing_eval
authorSohyun Kim <anna1014.kim@samsung.com>
Mon, 14 Jun 2010 05:52:13 +0000 (14:52 +0900)
committerSohyun Kim <anna1014.kim@samsung.com>
Mon, 14 Jun 2010 05:52:13 +0000 (14:52 +0900)
src/lib/elm_button.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index d9bf77e..1cee007
@@ -146,11 +146,17 @@ _sizing_eval(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
    Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;
+   Evas_Coord w, h;
 
    if (!wd) return;
    elm_coords_finger_size_adjust(1, &minw, 1, &minh);
    edje_object_size_min_restricted_calc(wd->btn, &minw, &minh, minw, minh);
    elm_coords_finger_size_adjust(1, &minw, 1, &minh);
+
+   evas_object_size_hint_min_get(obj, &w, &h);
+   if (w > minw) minw = w;
+   if (h > minw) minh = h;
+
    evas_object_size_hint_min_set(obj, minw, minh);
    evas_object_size_hint_max_set(obj, maxw, maxh);
 }