Limit textarea width
This commit is contained in:
parent
deff1ef4e9
commit
5b6438b64b
1 changed files with 2 additions and 2 deletions
4
main.c
4
main.c
|
|
@ -421,8 +421,8 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
/* Textarea flexbox */
|
||||
lv_obj_t *textarea_container = lv_obj_create(container);
|
||||
lv_obj_set_width(textarea_container, LV_PCT(100));
|
||||
lv_obj_set_height(textarea_container, LV_SIZE_CONTENT);
|
||||
lv_obj_set_size(textarea_container, LV_PCT(100), LV_SIZE_CONTENT);
|
||||
lv_obj_set_style_max_width(textarea_container, 512, LV_PART_MAIN);
|
||||
lv_obj_set_flex_flow(textarea_container, LV_FLEX_FLOW_ROW);
|
||||
lv_obj_set_flex_align(textarea_container, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER);
|
||||
lv_obj_set_style_pad_left(textarea_container, padding, LV_PART_MAIN);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue