From ea2545ae5dade0845889174737d072137bbb6591 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Tue, 17 Aug 2021 10:43:56 +0200 Subject: [PATCH] fix(table) fix an off-by-one issue in self size calculation --- src/widgets/lv_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/lv_table.c b/src/widgets/lv_table.c index 9aaaaadf8..79b101d12 100644 --- a/src/widgets/lv_table.c +++ b/src/widgets/lv_table.c @@ -491,8 +491,8 @@ static void lv_table_event(const lv_obj_class_t * class_p, lv_event_t * e) lv_coord_t h = 0; for(i = 0; i < table->row_cnt; i++) h += table->row_h[i]; - p->x = w; - p->y = h; + p->x = w - 1; + p->y = h - 1; } else if(code == LV_EVENT_PRESSED || code == LV_EVENT_PRESSING) { uint16_t col;