summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_page_transition_scroll.c
diff options
context:
space:
mode:
authorJaeun Choi <jaeun12.choi@samsung.com>2019-01-24 16:11:30 +0900
committerJaeun Choi <jaeun12.choi@samsung.com>2019-01-25 13:47:37 +0900
commit0b63181113e105fd6f93005d1a69816d9670ce6e (patch)
treedde7ae057a7e0f9ea02807b9108131385a703b97 /src/lib/elementary/efl_page_transition_scroll.c
parent90865582b50b2681a5c776c3a6dcae5418828537 (diff)
efl_page_transition_scroll: refactor calculation code for beffer readability
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_page_transition_scroll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_page_transition_scroll.c b/src/lib/elementary/efl_page_transition_scroll.c
index 600a6bb469..165ebb5e2a 100644
--- a/src/lib/elementary/efl_page_transition_scroll.c
+++ b/src/lib/elementary/efl_page_transition_scroll.c
@@ -127,8 +127,8 @@ _page_info_geometry_change(Efl_Page_Transition_Scroll_Data *pd,
127 Page_Info *pi; 127 Page_Info *pi;
128 int content_w; 128 int content_w;
129 129
130 content_w = spd->page_spec.sz.w 130 content_w = (spd->page_spec.sz.w * (pd->side_page_num * 2 + 1))
131 + ((spd->page_spec.sz.w + spd->page_spec.padding) * pd->side_page_num * 2); 131 + (spd->page_spec.padding * pd->side_page_num * 2);
132 132
133 if (content_w < spd->pager.w) 133 if (content_w < spd->pager.w)
134 { 134 {