focus: Fixed the animation issue related to bring_in.
authorAnand <anand.km@samsung.com>
Tue, 13 May 2014 02:24:19 +0000 (11:24 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 13 May 2014 02:24:20 +0000 (11:24 +0900)
commit94bc3ce471697957987fd3fefd52fe57361b060e
treeff65164def9786bba262667d8d44d8b9371ce8fc
parent5f54c3d85a3f1f1344ed4516700476b4300f573c
focus: Fixed the animation issue related to bring_in.

Summary:
Calculating the coordinate of the object to retain the focus with in view port.
Earlier focus was moving out of view port.

Test Plan:
elementary_test-> "Focus 3". Enable the Focus Auto scroll bring in and use
keys to move focused item.

Reviewers: raster, seoz, singh.amitesh, nirajkr

Differential Revision: https://phab.enlightenment.org/D822
legacy/elementary/src/bin/test_focus.c
legacy/elementary/src/lib/elm_widget.c