#define BASE_WIDTH 720.0f
#define PAGE_PORTRAIT_HEIGHT 1060.0f
+#define INDEX_HEIGHT 70
#endif // _MENU_SCREEN_CONF_H_
all_apps_edje = ALL_APPS_EDJE_PORTRAIT;
page_edje = GROUP_4X4_EDJE_PORTRAIT;
width = menu_screen_get_root_width();
- height = menu_screen_get_root_height();
- item_width = width / 4.0f;
+ height = menu_screen_get_root_height() - INDEX_HEIGHT;
+
+ if (menu_screen_get_root_width() > menu_screen_get_root_height()) item_width = height / 5.0f;
+ else item_width = width / 4.0f;
if (EINA_FALSE == elm_layout_file_set(all_apps, all_apps_edje, ALL_APPS_GROUP)) {
evas_object_del(all_apps);
retv_if(NULL == layout, NULL);
width = menu_screen_get_root_width();
- height = menu_screen_get_root_height();
+ height = menu_screen_get_root_height() - INDEX_HEIGHT;
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_min_set(layout, width, height);
_E("[%s] Failed to get ecore_evas object", __func__);
}
- evas_object_move(menu_screen_info.win, 0, 0);
evas_object_size_hint_min_set(menu_screen_info.win, menu_screen_info.root_width, menu_screen_info.root_height);
evas_object_size_hint_max_set(menu_screen_info.win, menu_screen_info.root_width, menu_screen_info.root_height);
evas_object_resize(menu_screen_info.win, menu_screen_info.root_width, menu_screen_info.root_height);