From daf7f1983758d0885e681df777a88fef64de0108 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 9 Apr 2015 16:31:32 -0400 Subject: [PATCH] don't redo min size hints on e_dialog show these are guaranteed to be wrong because elm won't provide accurate size hints without some arm twisting --- src/bin/e_dialog.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/bin/e_dialog.c b/src/bin/e_dialog.c index 827c8b003..c9295c7c3 100644 --- a/src/bin/e_dialog.c +++ b/src/bin/e_dialog.c @@ -248,13 +248,12 @@ e_dialog_show(E_Dialog *dia) if (o) elm_object_part_content_set(dia->bg_object, "e.swallow.content", o); - o = dia->box_object; - evas_object_size_hint_min_get(o, &mw, &mh); - elm_object_part_content_set(dia->bg_object, "e.swallow.buttons", o); + if (dia->min_w && dia->min_h) + mw = dia->min_w, mh = dia->min_h; + else + evas_object_size_hint_min_get(dia->bg_object, &mw, &mh); evas_object_resize(dia->win, mw, mh); - dia->min_w = mw; - dia->min_h = mh; if (!dia->resizable) { evas_object_size_hint_weight_set(dia->bg_object, 0, 0);