fix(table) fix an off-by-one issue in self size calculation
This commit is contained in:
@@ -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;
|
lv_coord_t h = 0;
|
||||||
for(i = 0; i < table->row_cnt; i++) h += table->row_h[i];
|
for(i = 0; i < table->row_cnt; i++) h += table->row_h[i];
|
||||||
|
|
||||||
p->x = w;
|
p->x = w - 1;
|
||||||
p->y = h;
|
p->y = h - 1;
|
||||||
}
|
}
|
||||||
else if(code == LV_EVENT_PRESSED || code == LV_EVENT_PRESSING) {
|
else if(code == LV_EVENT_PRESSED || code == LV_EVENT_PRESSING) {
|
||||||
uint16_t col;
|
uint16_t col;
|
||||||
|
|||||||
Reference in New Issue
Block a user