From 12ee3b350486524e79382a6c4f109bb39cb2294e Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Sat, 27 Apr 2019 20:15:55 +0200 Subject: [PATCH] kb: set default height to parent size / 2 --- src/lv_objx/lv_kb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lv_objx/lv_kb.c b/src/lv_objx/lv_kb.c index a5dd73f84..18975aad2 100644 --- a/src/lv_objx/lv_kb.c +++ b/src/lv_objx/lv_kb.c @@ -122,7 +122,7 @@ lv_obj_t * lv_kb_create(lv_obj_t * par, const lv_obj_t * copy) * Don't use `par` directly because if the window is created on a page it is moved to the * scrollable so the parent has changed */ lv_obj_set_size(new_kb, lv_obj_get_width_fit(lv_obj_get_parent(new_kb)), - lv_obj_get_height_fit(lv_obj_get_parent(new_kb))); + lv_obj_get_height_fit(lv_obj_get_parent(new_kb)) / 2); lv_obj_align(new_kb, NULL, LV_ALIGN_IN_BOTTOM_MID, 0, 0); lv_obj_set_event_cb(new_kb, lv_kb_def_event_cb);