forked from enlightenment/enventor
edj_viewer: fix the invalid size of part highlight for the text part.
My previous patch made a side effect that part highting size wont be correct for the text part. For now, disable the logic.
This commit is contained in:
parent
30c32488e0
commit
63f3fae337
|
@ -249,6 +249,7 @@ part_obj_geom_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,
|
||||||
evas_object_resize(part_highlight, w, h);
|
evas_object_resize(part_highlight, w, h);
|
||||||
evas_object_clip_set(part_highlight, clipper);
|
evas_object_clip_set(part_highlight, clipper);
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
else if (type == EDJE_PART_TYPE_TEXT)
|
else if (type == EDJE_PART_TYPE_TEXT)
|
||||||
{
|
{
|
||||||
Evas_Coord lx, ly;
|
Evas_Coord lx, ly;
|
||||||
|
@ -258,6 +259,7 @@ part_obj_geom_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,
|
||||||
evas_object_resize(part_highlight, w, h);
|
evas_object_resize(part_highlight, w, h);
|
||||||
evas_object_move(part_highlight, lx + x, ly + y);
|
evas_object_move(part_highlight, lx + x, ly + y);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
evas_object_geometry_get(obj, &x, &y, &w, &h);
|
evas_object_geometry_get(obj, &x, &y, &w, &h);
|
||||||
|
|
Loading…
Reference in New Issue