Description
I want to make a button wider than the content. The label is OK and I would like to make it 2x the width or add to the LV_SIZE_CONTENT. I see it uses LV_SIZE_CONTENT, how can I simply add to that?
What MCU/Processor/Board and compiler are you using?
PineTime DK, nRF52832, nRF Connect Visual Studio add-in, Zephyr
What LVGL version are you using?
8.3
What do you want to achieve?
I want to find a way to make a button at least SV_SIZE_CONTENT but wider as necessary
The code block(s) should be formatted like:
lv_obj_t *token_ack_button;
token_ack_button = lv_btn_create(lv_scr_act());
lv_obj_add_event_cb(token_ack_button, token_ack, LV_EVENT_ALL, NULL);
lv_obj_align(token_ack_button, LV_ALIGN_BOTTOM_MID, 0, 0);
lv_obj_t * label = lv_label_create(token_ack_button);
lv_label_set_text(label, "OK");