Summary:
When user called "elm_multibuttonetnry_editable_set()" API as false.
the internal entry will be unpacked from box.
Then called that API as true again.
the internal entry just show without box packed.
Also, editable set API should not work in MBE shrink mode.
Test Plan:
Alternately Call elm_multibuttonentry_ediable_set API as true, false.
Then check the internal entry state.
Reviewers: Hermet, cedric
Differential Revision: https://phab.enlightenment.org/D3134
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
if (sd->editable == editable) return;
sd->editable = editable;
- if (sd->editable)
- evas_object_show(sd->entry);
+ if (sd->editable && (sd->view_state != MULTIBUTTONENTRY_VIEW_SHRINK))
+ {
+ elm_box_pack_end(sd->box, sd->entry);
+ evas_object_show(sd->entry);
+ }
else
{
elm_box_unpack(sd->box, sd->entry);