abort gadget site layouts if the gadget site has not been sized

this triggers infinite loops, and a resize on the site will trigger a layout
automatically
This commit is contained in:
Mike Blumenkrantz 2017-07-28 13:49:31 -04:00
parent 3e982446ec
commit 9eed5f49a8
1 changed files with 1 additions and 0 deletions

View File

@ -702,6 +702,7 @@ _site_layout(Evas_Object *o, Evas_Object_Box_Data *priv EINA_UNUSED, void *data)
E_Gadget_Config *zgc;
evas_object_geometry_get(o, &x, &y, &w, &h);
if ((!w) || (!h)) return;
evas_object_geometry_set(zgs->events, x, y, w, h);
evas_object_box_align_get(o, &ax, &ay);