elm_multibuttonentry: Using current w,h value for item size calc when box resized.

Summary:
Support in case that If the expand mode is set to false
and the item is added using the item_append API.

Checking focus, entry visible is not needed to change mode in shrink when box resized.

If the view type is shrink when the MBE is in focus and the box is resized, it should be in shrink mode.

Test Plan:
elementary_test
MBE sample

Reviewers: woohyun, Hermet

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4429
This commit is contained in:
Woochan Lee 2016-11-28 21:33:42 +09:00 committed by Hermet Park
parent 8a21384759
commit 61f7865f95
1 changed files with 3 additions and 5 deletions

View File

@ -1034,14 +1034,12 @@ _box_resize_cb(void *data,
}
}
}
if (sd->view_state == MULTIBUTTONENTRY_VIEW_SHRINK &&
!elm_object_focus_get(data) && !evas_object_visible_get(sd->entry))
{
_shrink_mode_set(data, EINA_TRUE);
}
sd->w_box = w;
sd->h_box = h;
if (sd->view_state == MULTIBUTTONENTRY_VIEW_SHRINK)
_shrink_mode_set(data, EINA_TRUE);
}
static void