Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(table) invalidate the table on cell value change
  • Loading branch information
kisvegabor committed Jun 16, 2021
1 parent a070ecf commit cb3692e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/widgets/lv_table.c
Expand Up @@ -107,6 +107,8 @@ void lv_table_set_cell_value(lv_obj_t * obj, uint16_t row, uint16_t col, const c

table->cell_data[cell][0] = ctrl;
refr_size(obj, row);

lv_obj_invalidate(obj);
}

void lv_table_set_cell_value_fmt(lv_obj_t * obj, uint16_t row, uint16_t col, const char * fmt, ...)
Expand Down Expand Up @@ -196,6 +198,8 @@ void lv_table_set_cell_value_fmt(lv_obj_t * obj, uint16_t row, uint16_t col, con
lv_coord_t maxh = lv_obj_get_style_max_height(obj, LV_PART_ITEMS);

table->row_h[row] = LV_CLAMP(minh, h, maxh);

lv_obj_invalidate(obj);
}

void lv_table_set_row_cnt(lv_obj_t * obj, uint16_t row_cnt)
Expand Down

0 comments on commit cb3692e

Please sign in to comment.