Description
I have updated my demo/evaluation application from tag v7.9.1 to v8.0.0.
What MCU/Processor/Board and compiler are you using?
Raspberry Pi 3
What LVGL version are you using?
V8.0.0
What do you want to achieve?
V7.9.1
But I get
V8.0.0
What have you tried so far?
Everything I can think of.
Code to reproduce
I am using (by default in the theme)
/* Label */
.
.
else if(lv_obj_check_type(obj, &lv_label_class)) {
/* Use this font */
lv_obj_set_style_text_font(obj, g_theme.font_normal, 0);
/* Black text */
lv_obj_set_style_text_color(obj, g_color_text, 0);
/* Keep the size and write dots at the end if the text is too long */
lv_label_set_long_mode(obj, LV_LABEL_LONG_DOT);
}
and then I specify the size afterwards (I have tried to set everything here as well),
/* This one must be set explicitly after 'LV_LABEL_LONG_DOT' to work */
lv_obj_set_width(button_label, PIXEL_W_BUTTON);
according to
/**
* Set the behavior of the label with longer text then the object size
* @param label pointer to a label object
* @param long_mode the new mode from 'lv_label_long_mode' enum.
* In LV_LONG_WRAP/DOT/SCROLL/SCROLL_CIRC the size of the label should be set
* AFTER this function
*/
void lv_label_set_long_mode(lv_obj_t * obj, lv_label_long_mode_t long_mode);
I have also tried this on the master branch (2 days ago) with the same result.