feat(span): add an interface for setting the number of lines (#3200)

* fix draw: remove the high overflow judgment code
This commit is contained in:
guoweilkd
2022-03-29 19:06:58 +08:00
committed by GitHub
parent 9a0a74813d
commit 47791926f9
3 changed files with 65 additions and 36 deletions

View File

@@ -58,6 +58,9 @@ Use `lv_spangroup_set_overflow(spangroup, LV_SPAN_OVERFLOW_CLIP)` to set object
### first line indent
Use `lv_spangroup_set_indent(spangroup, 20)` to set the indent of the first line. all modes support pixel units, in addition to LV_SPAN_MODE_FIXED and LV_SPAN_MODE_BREAK mode supports percentage units too.
### lines
Use `lv_spangroup_set_lines(spangroup, 10)` to set the maximum number of lines to be displayed in LV_SPAN_MODE_BREAK mode, negative values indicate no limit.
## Events
No special events are sent by this widget.