Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9498] TiAPI: Titanium.UI.Label.textPadding

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsCore
Labelsn/a
ReporterPete Berry
AssigneeUnknown
Created2012-06-07T12:25:15.000+0000
Updated2018-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.

Comments

  1. Shawn Lipscomb 2012-06-11

    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.

JSON Source