feat(dropdown) make the dropdown's list use the max_height style proeprty
Instead of a widget property
This commit is contained in:
@@ -41,7 +41,6 @@ typedef struct {
|
||||
const char * text; /**< Text to display on the dropdown's button*/
|
||||
const void * symbol; /**< Arrow or other icon when the drop-down list is closed*/
|
||||
char * options; /**< Options in a a '\n' separated list*/
|
||||
lv_coord_t max_height; /**< Maximal height of the list when opened. (0: no max. height)*/
|
||||
uint16_t option_cnt; /**< Number of options*/
|
||||
uint16_t sel_opt_id; /**< Index of the currently selected option*/
|
||||
uint16_t sel_opt_id_orig; /**< Store the original index on focus*/
|
||||
@@ -127,13 +126,6 @@ void lv_dropdown_set_selected(lv_obj_t * obj, uint16_t sel_opt);
|
||||
*/
|
||||
void lv_dropdown_set_dir(lv_obj_t * obj, lv_dir_t dir);
|
||||
|
||||
/**
|
||||
* Set the maximal height for the drop-down list
|
||||
* @param obj pointer to a drop-down list
|
||||
* @param h the maximal height
|
||||
*/
|
||||
void lv_dropdown_set_max_height(lv_obj_t * obj, lv_coord_t h);
|
||||
|
||||
/**
|
||||
* Set an arrow or other symbol to display when on drop-down list's button. Typically a down caret or arrow.
|
||||
* @param obj pointer to drop-down list object
|
||||
@@ -197,13 +189,6 @@ uint16_t lv_dropdown_get_option_cnt(const lv_obj_t * obj);
|
||||
*/
|
||||
void lv_dropdown_get_selected_str(const lv_obj_t * obj, char * buf, uint32_t buf_size);
|
||||
|
||||
/**
|
||||
* Get the maximal height of the list.
|
||||
* @param obj pointer to a drop-down list object
|
||||
* @return the maximal height of the list
|
||||
*/
|
||||
lv_coord_t lv_dropdown_get_max_height(const lv_obj_t * obj);
|
||||
|
||||
/**
|
||||
* Get the symbol on the drop-down list. Typically a down caret or arrow.
|
||||
* @param obj pointer to drop-down list object
|
||||
|
||||
Reference in New Issue
Block a user