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
{
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;