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>
if (sd->horizontal)
{
- if (xx < obj_x)
+ if (!strcmp(sd->last_location, "left"))
{
xx = x;
if ((xx + ww) > obj_x)
}
else
{
- if (yy < obj_y)
+ if (!strcmp(sd->last_location, "top"))
{
yy = y;
if ((yy + hh) > obj_y)
}
}
}
+ if (ww < obj_w) ww = obj_w;
evas_object_size_hint_min_set(sd->spacer, ww, hh);
}