From 6f5539c8cad16d46791826b18d06db52fdc7d359 Mon Sep 17 00:00:00 2001 From: thiep ha Date: Wed, 12 Sep 2012 08:35:42 +0000 Subject: [PATCH] From: thiep ha Subject: [E-devel] [Patch] [Elementary] ctxpopup - correct position and size of ctxpopup With ctxpopup, if it has many items and user uses -1 as parameter in set direction priority function, the ctxpopup position and size are calculated incorrectly. Ex: elm_ctxpopup_direction_priority_set(ctxpopup, ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_UP, -1, -1); SVN revision: 76505 --- legacy/elementary/ChangeLog | 5 +++++ legacy/elementary/NEWS | 1 + legacy/elementary/src/lib/elc_ctxpopup.c | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/ChangeLog b/legacy/elementary/ChangeLog index ab6a8e35ea..7c97034c2b 100644 --- a/legacy/elementary/ChangeLog +++ b/legacy/elementary/ChangeLog @@ -467,3 +467,8 @@ * Add access features to calendar. + +2012-09-12 Thiep Ha + + * Fix ctxpopup direction if -1 is uses as priority. + diff --git a/legacy/elementary/NEWS b/legacy/elementary/NEWS index 09ff1e7152..ae10460612 100644 --- a/legacy/elementary/NEWS +++ b/legacy/elementary/NEWS @@ -21,6 +21,7 @@ Fixes: * Now elm_datetime_field_limit_set() can set year limits wihtout problems. * Fix re-order animation when it doesn't end correctly. * Fix popup to apply the same style to the notify sub-widget. + * Fix Ctxpopup direction if -1 priority used Removals: diff --git a/legacy/elementary/src/lib/elc_ctxpopup.c b/legacy/elementary/src/lib/elc_ctxpopup.c index 8125aa048f..b307da51b2 100644 --- a/legacy/elementary/src/lib/elc_ctxpopup.c +++ b/legacy/elementary/src/lib/elc_ctxpopup.c @@ -200,7 +200,7 @@ _base_geometry_calc(Evas_Object *obj, break; default: - break; + continue; } break; }