From abed93c48efe55eb7fff50374e53e9c90d5e533b Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 9 Dec 2008 06:07:11 +0000 Subject: [PATCH] fix hover best content location call SVN revision: 38043 --- legacy/elementary/src/lib/elm_hover.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/elementary/src/lib/elm_hover.c b/legacy/elementary/src/lib/elm_hover.c index abbe4df206..0510bb860b 100644 --- a/legacy/elementary/src/lib/elm_hover.c +++ b/legacy/elementary/src/lib/elm_hover.c @@ -397,13 +397,13 @@ elm_hover_best_content_location_get(Evas_Object *obj, Elm_Hover_Axis pref_axis) Evas_Coord spc_l, spc_r, spc_t, spc_b; if (wd->parent) evas_object_geometry_get(wd->parent, &x, &y, &w, &h); - if (wd->hov) evas_object_geometry_get(wd->hov, &x2, &y2, &w2, &h2); + if (wd->target) evas_object_geometry_get(wd->target, &x2, &y2, &w2, &h2); spc_l = x2 - x; spc_r = (x + w) - (x2 + w2); if (spc_l < 0) spc_l = 0; if (spc_r < 0) spc_r = 0; spc_t = y2 - y; - spc_b = (y + h) - (y2 + y2); + spc_b = (y + h) - (y2 + h2); if (spc_t < 0) spc_t = 0; if (spc_b < 0) spc_b = 0; if (pref_axis == ELM_HOVER_AXIS_HORIZONTAL)