From 492b2c3fd35796543c40b59ea7713a3840e92312 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Thu, 13 Mar 2014 10:23:24 +0100 Subject: [PATCH] workaround: hardcoding size to display nicely on tizen/generic should be proportional to fonts size Change-Id: I4d52ba07649f9bf21f3bdf931a64e152844084c5 Signed-off-by: Philippe Coval --- src/calc-main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/calc-main.c b/src/calc-main.c index 6349da8..1903c2e 100644 --- a/src/calc-main.c +++ b/src/calc-main.c @@ -49,6 +49,10 @@ Evas_Object *load_edj(Evas_Object * parent, const char *file, const char *group) } evas_object_size_hint_weight_set(eo, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + { + static const int h=2*300,w=2*200; + evas_object_size_hint_min_set(eo, w, h); + } } CALC_FUN_END(); return eo; @@ -237,6 +241,11 @@ static Evas_Object *_create_win(const char *name) evas_object_smart_callback_add(eo, "delete,request", _win_del, NULL); elm_win_screen_size_get(eo, NULL, NULL, &w, &h); + { + h /=2; + int t = h * 3. / 4.; + w = ( t < w ) ? t : w; + } evas_object_resize(eo, w, h); } CALC_FUN_END(); -- 2.7.4