Elementary els_scroller: Fixed not moving when position is shown.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 1 May 2011 09:40:28 +0000 (09:40 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 1 May 2011 09:40:28 +0000 (09:40 +0000)
commit8e59607bd5b91e104273bb386c061ca22808894a
tree0bb0f5e6e7d1a13b2c8122faf0c85490b3106a33
parentf8906b82aba3af233071998d9a8756f9dd28e4c4
Elementary els_scroller: Fixed not moving when position is shown.

The scroller shouldn't move when the position requested is already
shown. There were two problems:
1. It was assumed that the cw/ch == requsted w/h which is not true, for
example with entry, we sometimes request to show the cursor which way
smaller.
2. We want to check the bounds *after* making sure we are not showing
"dead space" i.e places that the child does not populate.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@59076 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/els_scroller.c