eunue pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5d1017d1046bdd150fbee215aaf3d43e63275cfc

commit 5d1017d1046bdd150fbee215aaf3d43e63275cfc
Author: Jaeun Choi <jaeun12.c...@samsung.com>
Date:   Thu Jan 24 11:32:48 2019 +0900

    efl_ui_pager: move page_box when page size is changed
---
 src/lib/elementary/efl_ui_pager.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_pager.c 
b/src/lib/elementary/efl_ui_pager.c
index 5aac2e0887..729fcfd586 100644
--- a/src/lib/elementary/efl_ui_pager.c
+++ b/src/lib/elementary/efl_ui_pager.c
@@ -727,7 +727,12 @@ _efl_ui_pager_page_size_set(Eo *obj EINA_UNUSED,
    if (pd->transition)
      efl_page_transition_page_size_set(pd->transition, pd->page_spec.sz);
    else
-     efl_gfx_entity_size_set(pd->page_box, pd->page_spec.sz);
+     {
+        efl_gfx_entity_size_set(pd->page_box, pd->page_spec.sz);
+        efl_gfx_entity_position_set(pd->page_box,
+                                    EINA_POSITION2D(pd->x + (pd->w / 2) - 
(pd->page_spec.sz.w / 2),
+                                                    pd->y + (pd->h / 2) - 
(pd->page_spec.sz.h / 2)));
+     }
 }
 
 EOLIAN static int

-- 


Reply via email to