avoid extra recalc when resizing a bryce on its oriented axis

This commit is contained in:
Mike Blumenkrantz 2016-10-19 11:38:04 -04:00
parent e690d70512
commit 2c4316633b
1 changed files with 2 additions and 1 deletions

View File

@ -465,7 +465,8 @@ _bryce_moveresize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event
size = h;
else
size = w;
if ((w != b->last_w) || (h != b->last_h))
if (((b->orient == E_GADGET_SITE_ORIENT_VERTICAL) && (w != b->last_w)) ||
((b->orient == E_GADGET_SITE_ORIENT_HORIZONTAL) && (h != b->last_h)))
{
evas_object_smart_need_recalculate_set(b->site, 1);
evas_object_size_hint_min_set(b->site, -1, -1);