attempt to recalc gadgets which overflow their container

This commit is contained in:
Mike Blumenkrantz 2016-10-31 13:07:21 -04:00
parent 3d1334e883
commit c3a01ba16c
1 changed files with 5 additions and 0 deletions

View File

@ -455,6 +455,11 @@ _site_gadget_resize(Evas_Object *g, int w, int h, Evas_Coord *ww, Evas_Coord *hh
if ((mxw >= 0) && (mxw < *ow)) *ow = mxw;
if ((mxh >= 0) && (mxh < *oh)) *oh = mxh;
}
if (!zgc->site->orient)
{
if ((w < (*ow)) || (h < (*oh)))
evas_object_smart_need_recalculate_set(zgc->gadget, 1);
}
//fprintf(stderr, "%s: %dx%d\n", zgc->type, *ow, *oh);
evas_object_resize(zgc->display, *ow, *oh);
}