summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_pager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_pager.c b/src/lib/elementary/efl_ui_pager.c
index 4b84ea795e..e0e3313906 100644
--- a/src/lib/elementary/efl_ui_pager.c
+++ b/src/lib/elementary/efl_ui_pager.c
@@ -339,7 +339,7 @@ _efl_ui_pager_efl_object_constructor(Eo *obj,
339 pd->cnt = 0; 339 pd->cnt = 0;
340 pd->loop = EFL_UI_PAGER_LOOP_DISABLED; 340 pd->loop = EFL_UI_PAGER_LOOP_DISABLED;
341 341
342 pd->curr.page = 0; 342 pd->curr.page = -1;
343 pd->curr.pos = 0.0; 343 pd->curr.pos = 0.0;
344 344
345 pd->transition = NULL; 345 pd->transition = NULL;
@@ -424,6 +424,7 @@ _efl_ui_pager_efl_pack_linear_pack_end(Eo *obj EINA_UNUSED,
424 pd->content_list = eina_list_append(pd->content_list, subobj); 424 pd->content_list = eina_list_append(pd->content_list, subobj);
425 425
426 pd->cnt++; 426 pd->cnt++;
427 if (pd->curr.page == -1) pd->curr.page = 0;
427 428
428 if (pd->transition) 429 if (pd->transition)
429 efl_page_transition_update(pd->transition, pd->curr.pos); 430 efl_page_transition_update(pd->transition, pd->curr.pos);