summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-03-31 19:50:46 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-04-01 10:41:35 +0200
commit4ef3f6366f242479ad459aefbcd130e12ac28cc7 (patch)
tree23fdb7f44308b193ebc766a44e6a9887d2d1b33e
parentb40b1052b570a197fdb397e8f4c9e66c1e76702e (diff)
downloadefl-4ef3f6366f242479ad459aefbcd130e12ac28cc7.tar.gz
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.
-rw-r--r--src/lib/elementary/elc_combobox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elc_combobox.c b/src/lib/elementary/elc_combobox.c
index 50089a50fd..5977bfe760 100644
--- a/src/lib/elementary/elc_combobox.c
+++ b/src/lib/elementary/elc_combobox.c
@@ -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);
//hover-parent
- sd->hover_parent = elm_object_parent_widget_get(obj);
+ sd->hover_parent = elm_object_top_widget_get(obj);
//hover
sd->hover = efl_add(ELM_HOVER_CLASS, sd->hover_parent);