Right drop target size

If we are in an autoscroll container, use it's size as drop target

SVN revision: 54328
This commit is contained in:
Sebastian Dransfeld 2010-11-08 14:05:29 +00:00
parent af68b736a2
commit 7ec3dd0f41
3 changed files with 12 additions and 3 deletions

View File

@ -429,7 +429,10 @@ _ibar_instance_drop_zone_recalc(Instance *inst)
{
Evas_Coord x, y, w, h;
evas_object_geometry_get(inst->o_ibar, &x, &y, &w, &h);
if (inst->gcc->o_box)
evas_object_geometry_get(inst->gcc->o_box, &x, &y, &w, &h);
else
evas_object_geometry_get(inst->o_ibar, &x, &y, &w, &h);
e_drop_handler_geometry_set(inst->drop_handler, x, y, w, h);
}

View File

@ -449,7 +449,10 @@ _ibox_instance_drop_zone_recalc(Instance *inst)
{
Evas_Coord x, y, w, h;
evas_object_geometry_get(inst->o_ibox, &x, &y, &w, &h);
if (inst->gcc->o_box)
evas_object_geometry_get(inst->gcc->o_box, &x, &y, &w, &h);
else
evas_object_geometry_get(inst->o_ibox, &x, &y, &w, &h);
e_drop_handler_geometry_set(inst->drop_handler, x, y, w, h);
}

View File

@ -857,7 +857,10 @@ _pager_instance_drop_zone_recalc(Instance *inst)
{
Evas_Coord x, y, w, h;
evas_object_geometry_get(inst->o_pager, &x, &y, &w, &h);
if (inst->gcc->o_box)
evas_object_geometry_get(inst->gcc->o_box, &x, &y, &w, &h);
else
evas_object_geometry_get(inst->o_pager, &x, &y, &w, &h);
e_drop_handler_geometry_set(inst->pager->drop_handler, x, y, w, h);
}