[elm_datefield.c] Usage of elm_ctxpopup_direction_get() API is changed.
authorsumanth <sumanth.m@samsung.com>
Fri, 14 Oct 2011 04:18:44 +0000 (13:18 +0900)
committersumanth <sumanth.m@samsung.com>
Tue, 18 Oct 2011 07:30:46 +0000 (16:30 +0900)
Change-Id: Id7301ef2f4a07970dd360b1894ecece64928f5ae

src/lib/elm_datefield.c

index e6ded5d..536d279 100644 (file)
@@ -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);