From 01d27333b0e1169b2fbcde4cc530fdf96e552344 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 9 Apr 2015 16:16:33 -0400 Subject: [PATCH] force dialogs to recalc content sizes before setting min size --- src/bin/e_dialog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/e_dialog.c b/src/bin/e_dialog.c index 8c1de98..827c8b0 100644 --- a/src/bin/e_dialog.c +++ b/src/bin/e_dialog.c @@ -206,6 +206,8 @@ e_dialog_content_set(E_Dialog *dia, Evas_Object *obj, Evas_Coord minw, Evas_Coor e_widget_on_focus_hook_set(obj, _e_dialog_cb_wid_on_focus, dia); evas_object_size_hint_min_set(obj, minw, minh); elm_object_part_content_set(dia->bg_object, "e.swallow.content", obj); + elm_layout_sizing_eval(dia->bg_object); + evas_object_smart_calculate(dia->bg_object); evas_object_size_hint_min_get(dia->bg_object, &mw, &mh); evas_object_resize(dia->win, mw, mh); dia->min_w = mw; -- 2.7.4