fix minor example issues
This commit is contained in:
@@ -10,9 +10,7 @@ void lv_example_dropdown_2(void)
|
||||
static const char * opts = "Apple\n"
|
||||
"Banana\n"
|
||||
"Orange\n"
|
||||
"Melon\n"
|
||||
"Grape\n"
|
||||
"Raspberry";
|
||||
"Melon";
|
||||
|
||||
lv_obj_t * dd;
|
||||
dd = lv_dropdown_create(lv_scr_act());
|
||||
|
||||
@@ -19,6 +19,8 @@ void lv_example_dropdown_3(void)
|
||||
lv_obj_align(dropdown, LV_ALIGN_TOP_LEFT, 10, 10);
|
||||
lv_dropdown_set_options(dropdown, "New project\n"
|
||||
"New file\n"
|
||||
"Save\n"
|
||||
"Save as\n"
|
||||
"Open project\n"
|
||||
"Recent projects\n"
|
||||
"Preferences\n"
|
||||
|
||||
@@ -63,7 +63,7 @@ void lv_example_table_2(void)
|
||||
lv_obj_t * table = lv_table_create(lv_scr_act());
|
||||
|
||||
/*Set a smaller height to the table. It'll make it scrollable*/
|
||||
lv_obj_set_size(table, 150, 200);
|
||||
lv_obj_set_size(table, LV_SIZE_CONTENT, 200);
|
||||
|
||||
lv_table_set_col_width(table, 0, 150);
|
||||
lv_table_set_row_cnt(table, ITEM_CNT); /*Not required but avoids a lot of memory reallocation lv_table_set_set_value*/
|
||||
|
||||
Reference in New Issue
Block a user