forked from enlightenment/enlightenment
add separate codepath for handling layout of moving gadgets
these get sized and positioned in a passthrough manner, so avoid doing any calc
This commit is contained in:
parent
30b07c6558
commit
ef5ba9f35e
|
@ -529,6 +529,10 @@ _site_layout(Evas_Object *o, Evas_Object_Box_Data *priv EINA_UNUSED, void *data)
|
|||
int ww, hh, ow, oh;
|
||||
|
||||
if (!zgc->display) continue;
|
||||
if (zgc->moving)
|
||||
_site_gadget_resize(zgc->gadget, w, h, &ww, &hh, &ow, &oh);
|
||||
else
|
||||
{
|
||||
_site_gadget_resize(zgc->gadget, w * zgc->w, h * zgc->h, &ww, &hh, &ow, &oh);
|
||||
if (zgc->x > -1.0)
|
||||
{
|
||||
|
@ -540,6 +544,7 @@ _site_layout(Evas_Object *o, Evas_Object_Box_Data *priv EINA_UNUSED, void *data)
|
|||
gy = zgc->y * h;
|
||||
gy += (Evas_Coord)(((double)(hh - oh)) * 0.5 * -ay);
|
||||
}
|
||||
}
|
||||
if (zgs->gravity)
|
||||
{
|
||||
#if 0//FIXME
|
||||
|
|
Loading…
Reference in New Issue