feat(span) indent supports percent for fix and break mode (#2693)

* span:indent supports percent for fix and break mode

* Update docs/widgets/extra/span.md

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
guoweilkd
2021-10-20 17:13:42 +08:00
committed by GitHub
parent eaf25348a7
commit 91a0d3b5e4
2 changed files with 29 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ The spangroup can be set to one the following modes:
Use `lv_spangroup_set_overflow(spangroup, LV_SPAN_OVERFLOW_CLIP)` to set object overflow mode.
### first line indent
Use `lv_spangroup_set_indent(spangroup, 20)` to set the indent of the first line, in pixels.
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.
## Events
No special events are sent by this widget.