calculator can not display with full screen. 72/15772/2 accepted/tizen/generic/20140128.075330 submit/tizen/20140128.034930
authorwangfei <feix.w.wang@intel.com>
Tue, 28 Jan 2014 03:22:14 +0000 (11:22 +0800)
committerWang Quanxian <quanxian.wang@intel.com>
Tue, 28 Jan 2014 03:22:22 +0000 (19:22 -0800)
init screen size and resize window to let calculator display with
full screen.

Signed-off-by: wangfei <feix.w.wang@intel.com>
Change-Id: I2d5728e36285a04caaa9e8034e4badb5ef83879f

src/calc-main.c

index 69284da..6349da8 100644 (file)
@@ -230,11 +230,14 @@ static Evas_Object *_create_win(const char *name)
 {
     CALC_FUN_BEG();
        Evas_Object *eo;
+       int w,h;
        eo = elm_win_add(NULL, name, ELM_WIN_BASIC);
        if (eo) {
                elm_win_title_set(eo, name);
                evas_object_smart_callback_add(eo, "delete,request", _win_del,
                                               NULL);
+       elm_win_screen_size_get(eo, NULL, NULL, &w, &h);
+       evas_object_resize(eo, w, h);
        }
        CALC_FUN_END();
        return eo;