forked from enlightenment/enlightenment
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
This commit is contained in:
parent
01d27333b0
commit
daf7f19837
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue