fix(example) minor fixes

This commit is contained in:
Gabor Kiss-Vamosi
2021-05-07 21:54:43 +02:00
parent b8557f2432
commit 182ac21613
2 changed files with 3 additions and 3 deletions

View File

@@ -11,14 +11,14 @@ Simple Button matrix
Custom buttons
""""""""""""""""""""""
.. lv_example:: widgets/btnmatrix/lv_example_btnmatrix_1
.. lv_example:: widgets/btnmatrix/lv_example_btnmatrix_2
:language: c
Pagination
""""""""""""""""""""""
.. lv_example:: widgets/btnmatrix/lv_example_btnmatrix_1
.. lv_example:: widgets/btnmatrix/lv_example_btnmatrix_3
:language: c

View File

@@ -30,7 +30,7 @@ void lv_example_dropdown_3(void)
/*Use a custom image as down icon and flip it when the list is opened*/
LV_IMG_DECLARE(img_caret_down)
lv_dropdown_set_symbol(dropdown, &img_caret_down);
lv_obj_set_style_transform_angle(dropdown, 1800, LV_STATE_CHECKED);
lv_obj_set_style_transform_angle(dropdown, 1800, LV_PART_INDICATOR | LV_STATE_CHECKED);
/*In a menu we don't need to show the last clicked item*/
lv_dropdown_set_selected_highlight(dropdown, false);