LV_LABEL_LONG_WRAP does not work


What MCU/Processor/Board and compiler are you using?

Linux Simulator (monitor.c)

What LVGL version are you using?


What do you want to achieve?

A simple wrapping of text of a label

What have you tried so far?

See code

Code to reproduce

Also, if I use a container instead of lv_scr_act() for the label, it does not work neither.

  lv_obj_set_style_text_font(lv_scr_act(), &small,0);
        lv_obj_add_flag(lv_scr_act(), LV_OBJ_FLAG_PRESS_LOCK);
        //lv_obj_set_width(header_label, 550); //if I uncomment this I get a seg fault
        header_label = lv_label_create(lv_scr_act());
        lv_label_set_long_mode(header_label, LV_LABEL_LONG_WRAP);     

        lv_label_set_text(header_label, "TEEEEEST dasjdsakjds ajdkl sajdj ad jkajds lsjadjasjdksajdlasjdlsaj dasdsajkdj jkasdjaj dkajd jkasjd ajsd sajkdjsa djad jkasd wajsdkjdklajs dkljdskl");

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

Does anybody know, how to wrap text in 8.1 (C/C++) ?