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)
|
if (o)
|
||||||
elm_object_part_content_set(dia->bg_object, "e.swallow.content", o);
|
elm_object_part_content_set(dia->bg_object, "e.swallow.content", o);
|
||||||
|
|
||||||
o = dia->box_object;
|
if (dia->min_w && dia->min_h)
|
||||||
evas_object_size_hint_min_get(o, &mw, &mh);
|
mw = dia->min_w, mh = dia->min_h;
|
||||||
elm_object_part_content_set(dia->bg_object, "e.swallow.buttons", o);
|
else
|
||||||
|
evas_object_size_hint_min_get(dia->bg_object, &mw, &mh);
|
||||||
|
|
||||||
evas_object_resize(dia->win, mw, mh);
|
evas_object_resize(dia->win, mw, mh);
|
||||||
dia->min_w = mw;
|
|
||||||
dia->min_h = mh;
|
|
||||||
if (!dia->resizable)
|
if (!dia->resizable)
|
||||||
{
|
{
|
||||||
evas_object_size_hint_weight_set(dia->bg_object, 0, 0);
|
evas_object_size_hint_weight_set(dia->bg_object, 0, 0);
|
||||||
|
|
Loading…
Reference in New Issue