hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=a9376c508aebf83d1f9bec102cbaeae299e9b8d1

commit a9376c508aebf83d1f9bec102cbaeae299e9b8d1
Author: ChunEon Park <[email protected]>
Date:   Thu Feb 6 00:49:18 2014 +0900

    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.
---
 src/bin/edj_viewer.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bin/edj_viewer.c b/src/bin/edj_viewer.c
index 1c81425..84bc86e 100644
--- a/src/bin/edj_viewer.c
+++ b/src/bin/edj_viewer.c
@@ -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);
 }

-- 


Reply via email to