efl_page_transition_scroll: refactor calculation code for beffer readability

This commit is contained in:
Jaeun Choi 2019-01-24 16:11:30 +09:00
parent 90865582b5
commit 0b63181113
1 changed files with 2 additions and 2 deletions

View File

@ -127,8 +127,8 @@ _page_info_geometry_change(Efl_Page_Transition_Scroll_Data *pd,
Page_Info *pi;
int content_w;
content_w = spd->page_spec.sz.w
+ ((spd->page_spec.sz.w + spd->page_spec.padding) * pd->side_page_num * 2);
content_w = (spd->page_spec.sz.w * (pd->side_page_num * 2 + 1))
+ (spd->page_spec.padding * pd->side_page_num * 2);
if (content_w < spd->pager.w)
{