forked from enlightenment/efl
combobox: Fix combobox for the case the parent is not the window
if the parent is not a window the elm hover is created for the parent of the combobox, which is a problem because the hover will not expand to its full size of the window, and will stay in the size of the parent. Adding the top widget instead of the parent widget fixes that.
This commit is contained in:
parent
b40b1052b5
commit
4ef3f6366f
|
@ -333,7 +333,7 @@ _elm_combobox_efl_object_constructor(Eo *obj, Elm_Combobox_Data *sd)
|
||||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_GLASS_PANE);
|
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_GLASS_PANE);
|
||||||
|
|
||||||
//hover-parent
|
//hover-parent
|
||||||
sd->hover_parent = elm_object_parent_widget_get(obj);
|
sd->hover_parent = elm_object_top_widget_get(obj);
|
||||||
|
|
||||||
//hover
|
//hover
|
||||||
sd->hover = efl_add(ELM_HOVER_CLASS, sd->hover_parent);
|
sd->hover = efl_add(ELM_HOVER_CLASS, sd->hover_parent);
|
||||||
|
|
Loading…
Reference in New Issue