elm_interface_scrollable: fix wanted coordinate calculation
authorwonguk.jeong <wonguk.jeong@samsung.com>
Mon, 21 Apr 2014 06:06:28 +0000 (15:06 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 21 Apr 2014 06:06:28 +0000 (15:06 +0900)
commite1ea913a228b3b5598b5ebeacc9620d45d45c547
tree67baf6d80c5f08f8ba1bb0f7d74597810f50ca5e
parenta4f3729da09a8d3e2533d1f83d3b359b53123dad
elm_interface_scrollable: fix wanted coordinate calculation

Summary:
boundary check of _elm_scroll_wanted_coordinates_update() is wrong.
boundary was checked with assumption that 0, 0 is top, left
however, 0, 0 could be different according to usages, in case of gengrid, 0, 0 was center left not top left)

Do not assume the min/max value, but use pan min/max value for boundary check

Fixes T1092

Test Plan: elementary_test -> grid -> uncheck multi select mode -> select first item -> click bring in -> resize window

Reviewers: raster, woohyun, seoz, zmike

CC: seoz
Maniphest Tasks: T1092

Differential Revision: https://phab.enlightenment.org/D720
legacy/elementary/src/lib/elm_interface_scrollable.c