From: sumanth Date: Fri, 14 Oct 2011 04:18:44 +0000 (+0900) Subject: [elm_datefield.c] Usage of elm_ctxpopup_direction_get() API is changed. X-Git-Tag: REL_F_I9200_20111021_1~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82e2d41af6de4b6450524c570497ffe3f96fc1e0;p=framework%2Fuifw%2Felementary.git [elm_datefield.c] Usage of elm_ctxpopup_direction_get() API is changed. Change-Id: Id7301ef2f4a07970dd360b1894ecece64928f5ae --- diff --git a/src/lib/elm_datefield.c b/src/lib/elm_datefield.c index e6ded5d..536d279 100644 --- a/src/lib/elm_datefield.c +++ b/src/lib/elm_datefield.c @@ -634,20 +634,18 @@ _datefield_clicked_cb(void *data, Evas_Object *obj __UNUSED__, _load_field_options(data, diskselector, wd->selected_it); elm_ctxpopup_direction_priority_set(wd->ctxpopup, ELM_CTXPOPUP_DIRECTION_DOWN, - ELM_CTXPOPUP_DIRECTION_UP, ELM_CTXPOPUP_DIRECTION_LEFT, - ELM_CTXPOPUP_DIRECTION_RIGHT); + ELM_CTXPOPUP_DIRECTION_UP, -1, -1); elm_ctxpopup_content_set(wd->ctxpopup, diskselector); snprintf(buf,sizeof(buf), EDC_PART_ITEM_STR, wd->selected_it->location); edj_part = edje_object_part_object_get(wd->base, buf); evas_object_geometry_get(edj_part, &x, &y, &w, &h); evas_object_move(wd->ctxpopup, (x+w/2), (y+h)); - //If arrow direction is downwards, move ctxpopup to the top of datefield - if (elm_ctxpopup_direction_get (wd->ctxpopup) == ELM_CTXPOPUP_DIRECTION_DOWN) + //If the direction of Ctxpopup is upwards, move it to the top of datefield + if (elm_ctxpopup_direction_get (wd->ctxpopup) == ELM_CTXPOPUP_DIRECTION_UP) { elm_ctxpopup_direction_priority_set(wd->ctxpopup, ELM_CTXPOPUP_DIRECTION_UP, - ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_LEFT, - ELM_CTXPOPUP_DIRECTION_RIGHT); + ELM_CTXPOPUP_DIRECTION_DOWN, -1, -1); evas_object_move(wd->ctxpopup, (x+w/2), y); } evas_object_show(wd->ctxpopup);