From 0e7f774d96b5520d02acde97da72b8dbe07a4064 Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Sun, 23 Oct 2011 22:26:20 +0000 Subject: [PATCH] e-modules/engage: patch from ppurka to fix right label position SVN revision: 64330 --- src/e_mod_main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 6aeb4c2..231017c 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -1283,19 +1283,18 @@ _ngi_zoom_function(Ng *ng, double to, double pos) static void _ngi_label_pos_set(Ng *ng) { - int off, h; + int off; if (!ng->item_active) return; off = (ng->size * ng->zoom) + ng->opt.edge_offset + TEXT_DIST; - h = ng->win->popup->h; switch (ng->cfg->orient) { case E_GADCON_ORIENT_BOTTOM: evas_object_move(ng->o_label, ng->item_active->pos + ng->size/2, - (h + ng->hide_step) - off); + (ng->win->popup->h + ng->hide_step) - off); break; case E_GADCON_ORIENT_TOP: @@ -1303,7 +1302,7 @@ _ngi_label_pos_set(Ng *ng) (off - ng->hide_step)); break; case E_GADCON_ORIENT_RIGHT: - evas_object_move(ng->o_label, (h + ng->hide_step) - off, + evas_object_move(ng->o_label, (ng->win->popup->w + ng->hide_step) - off, ng->item_active->pos + ng->size/2); break;