forked from enlightenment/efl
elc_hoversel: just little fix of expand/noitem behavior
when hoversel has no item at all and use clicks on it, then it goes into state called "expanded". and so then, no matter how many items user would try to add, hoversel won't work anymore. @fix
This commit is contained in:
parent
61afb3360e
commit
744fa9bba1
|
@ -384,11 +384,12 @@ _activate(Evas_Object *obj)
|
|||
elm_hoversel_hover_end(obj);
|
||||
return;
|
||||
}
|
||||
sd->expanded = EINA_TRUE;
|
||||
|
||||
if (elm_widget_disabled_get(obj)) return;
|
||||
if (!sd->items) return;
|
||||
|
||||
sd->expanded = EINA_TRUE;
|
||||
|
||||
sd->hover = elm_hover_add(sd->hover_parent);
|
||||
elm_widget_sub_object_add(obj, sd->hover);
|
||||
evas_object_layer_set(sd->hover, evas_object_layer_get(sd->hover_parent));
|
||||
|
|
Loading…
Reference in New Issue