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:
ChunEon Park 2014-02-06 00:49:18 +09:00
parent 0e7f161e9d
commit a9376c508a
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}