From 9d097c7cc1c981c3ed690c8320a246bccc918cd4 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Fri, 22 Dec 2017 15:37:06 +0100 Subject: [PATCH] btnm: bottom border fix --- lv_objx/lv_btnm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lv_objx/lv_btnm.c b/lv_objx/lv_btnm.c index 6ade661ba..a7e3d5258 100644 --- a/lv_objx/lv_btnm.c +++ b/lv_objx/lv_btnm.c @@ -227,7 +227,7 @@ void lv_btnm_set_map(lv_obj_t * btnm, const char ** map) /*If no vertical padding then make sure the last row is at the bottom of 'btnm'*/ if(style_bg->body.padding.ver == 0 && act_y + btn_h * 2 > max_h) { /*Last row?*/ - btn_h = max_h - act_y; + btn_h = max_h - act_y - 1; } if(strlen(map_p_tmp[btn_cnt]) == 0) break; /*Break on end of map*/