LV_SIZE_CONTENT + max_width

I need to make my label like this: if width of content <= 100px, my label width is LV_SIZE_CONTENT,if width of content > 100px, my label width is 100px and lv_label_set_long_mode(title_label, LV_LABEL_LONG_DOT). Now my code is: lv_obj_set_size(abel, LV_SIZE_CONTENT, 27); lv_obj_set_style_max_width(label, 100, 0); lv_label_set_long_mode(title_label, LV_LABEL_LONG_DOT).But it doesn’t work. My label content is disappeared and only show dots like:… How can I solve it? Thanks a lot!