Elm: Fix slider popup to account for framespace.

NB: This is done because of the way slider handles the popup (indicator).
It is not getting trapped in the evas functions (or rather, the popup
falls through the traps there) so framespace is not accounted on the
popup, resulting in improper popup position when run in wayland.

NB: This is the only widget known to need this.



SVN revision: 75546
This commit is contained in:
Christopher Michael 2012-08-22 12:45:44 +00:00
parent f2ff49a5b0
commit e143475151
1 changed files with 4 additions and 2 deletions

View File

@ -584,15 +584,17 @@ _spacer_up_cb(void *data,
static void
_track_move_cb(void *data,
Evas *e __UNUSED__,
Evas *e,
Evas_Object *obj,
void *event_info __UNUSED__)
{
Evas_Coord x, y;
int fy = 0;
ELM_SLIDER_DATA_GET(data, sd);
evas_object_geometry_get(obj, &x, &y, NULL, NULL);
evas_object_move(sd->popup, x, y);
evas_output_framespace_get(e, NULL, &fy, NULL, NULL);
evas_object_move(sd->popup, x, y - fy);
}
static void