aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bin/e_widget.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/e_widget.c b/src/bin/e_widget.c
index 2b5fef841..6328b1daa 100644
--- a/src/bin/e_widget.c
+++ b/src/bin/e_widget.c
@@ -195,10 +195,13 @@ e_widget_sub_object_del(Evas_Object *obj, Evas_Object *sobj)
EAPI void
e_widget_resize_object_set(Evas_Object *obj, Evas_Object *sobj)
{
+ int w, h;
API_ENTRY return;
if (sd->resize_obj) evas_object_smart_member_del(sd->resize_obj);
sd->resize_obj = sobj;
evas_object_event_callback_add(sobj, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _e_widget_hint, obj);
+ evas_object_size_hint_min_get(sobj, &w, &h);
+ evas_object_size_hint_min_set(obj, w, h);
evas_object_smart_member_add(sobj, obj);
_e_smart_reconfigure(sd);
}