forked from enlightenment/enlightenment
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:
parent
af68b736a2
commit
7ec3dd0f41
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue