forked from enlightenment/enventor
edj_viewer - added workaround code for weird text ellipsis.
when the view scale is changed, text ellipsis is applied even there is much enough area to display text. i didn't see the reason enoughly but text itself makes the size smaller in ellipsis calculation time.
This commit is contained in:
parent
0e7f161e9d
commit
a9376c508a
|
@ -359,4 +359,10 @@ view_scale_set(view_data *vd, double scale)
|
|||
if (scale == edje_object_scale_get(vd->layout)) return;
|
||||
|
||||
edje_object_scale_set(vd->layout, scale);
|
||||
|
||||
//FIXME: Update the size for weird text ellipsis.
|
||||
Evas_Coord w, h;
|
||||
evas_object_geometry_get(vd->layout, NULL, NULL, &w, &h);
|
||||
evas_object_resize(vd->layout, 0, 0);
|
||||
evas_object_resize(vd->layout, w, h);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue