LV_LABEL_LONG_DOT does not work as in v7.9.1

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
image

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.

Simple code to reproduce the bug/error/issue:

  {
    /* Create test button */
    lv_obj_t *btn_obj = lv_btn_create(SCR_ACT());
    /* Correct size */
    lv_obj_set_size(btn_obj, PIXEL_W_BUTTON, PIXEL_H_BUTTON);
    /* Make button button 'clickable' */
    lv_obj_add_flag(btn_obj, LV_OBJ_FLAG_CHECKABLE);

    /* Create label */
    lv_obj_t *button_label = lv_label_create(btn_obj);
    /* Text input can not change the color of the text */
    lv_label_set_recolor(button_label, FALSE);
    /* Use this font */
    lv_obj_set_style_text_font(button_label, &lv_font_montserrat_20, 0);
    /* Black text */
    lv_obj_set_style_text_color(button_label, lv_color_black(), 0);
    /* Keep the size and write dots at the end if the text is too long */
    lv_label_set_long_mode(button_label, LV_LABEL_LONG_DOT);
    /* Alignment */
    lv_obj_set_style_text_align(button_label, LV_TEXT_ALIGN_AUTO, 0);

    {
      char *label_symbol = LV_SYMBOL_TRASH; /* :P */
      /* This text shall not fit within the label (... is expected) */
      char *label_text = "123456789_123456789_123456789_123456789_123456789_";
      lv_label_set_text_fmt(button_label, "%s %s", label_symbol, label_text);
    }

    /* This one must be set explicitly after 'LV_LABEL_LONG_DOT' to work */
    lv_obj_set_width(button_label, PIXEL_W_BUTTON);
  }

PIXEL_W_BUTTON = 400 /* pixels */

Result:

image