Merge "workaround: hardcoding size to display nicely on tizen/generic should be propo... accepted/tizen_3.0.2014.q3_common tizen_3.0.2014.q3_common submit/tizen_common/20140528.164225 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release
authorDominig ar Foll <dominig.arfoll@fridu.net>
Wed, 28 May 2014 16:39:42 +0000 (09:39 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 28 May 2014 16:39:42 +0000 (09:39 -0700)
src/calc-main.c

index dd54fff..2561237 100644 (file)
@@ -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();