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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user