From: wangfei Date: Tue, 28 Jan 2014 03:22:14 +0000 (+0800) Subject: calculator can not display with full screen. X-Git-Tag: accepted/tizen/generic/20140128.075330^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52a0d2786401b322c71f39e113b7d61feefb7114;p=apps%2Fcore%2Fpreloaded%2Fcalculator.git calculator can not display with full screen. init screen size and resize window to let calculator display with full screen. Signed-off-by: wangfei Change-Id: I2d5728e36285a04caaa9e8034e4badb5ef83879f --- diff --git a/src/calc-main.c b/src/calc-main.c index 69284da..6349da8 100644 --- a/src/calc-main.c +++ b/src/calc-main.c @@ -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;