[TIMOB-9498] TiAPI: Titanium.UI.Label.textPadding
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 2.1.0 |
| Fix Version/s | n/a |
| Components | Core |
| Labels | n/a |
| Reporter | Pete Berry |
| Assignee | Unknown |
| Created | 2012-06-07T12:25:15.000+0000 |
| Updated | 2018-02-28T20:03:33.000+0000 |
Description
Titanium.UI.Label.textPadding would be described as "Number of pixels before the text of a label."
At present the only way to pad is by adding a space character(s) to the beginning. This does not allow "fine" control of the text in a label when a background is utilized.
TextFields have paddingLeft and paddingRight. It would be nice to have these properties implemented for Label as well. This would be especially useful when the label has a colored background, and you want a certain amount of that color to show on the left and/or right of the Label's text.