elm.hoversel: fix item size calculation
authorJee-Yong Um <jc9.um@samsung.com>
Fri, 16 Dec 2016 23:02:06 +0000 (15:02 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 16 Dec 2016 23:02:09 +0000 (15:02 -0800)
commit4ea7effe70423b5f88f98aea45a96582669aa280
tree1a13a3f33c98a645386ddf52d243c784630f95f3
parent9393560178ade26d2caf579d98962964f5f068d2
elm.hoversel: fix item size calculation

Summary:
The way to find the position of hoversel expansion is based on geometry
currently, but it causes errors when theme is not made as expected.
This patch makes hoversel use string to find the right position and
calculate item width correctly when items are shorter than hoversel itself.

Test Plan:
elementary_test -to hoversel
(error case shows in tizen mobile device when screen is rotated)

Reviewers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4484

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/elementary/elc_hoversel.c