Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14886] iOS: Label padding not working

GitHub Issuen/a
TypeBug
PriorityLow
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsiOS
Labelsios
ReporterPhilippe Wueger
AssigneeUnknown
Created2013-08-14T07:35:31.000+0000
Updated2018-02-28T20:04:16.000+0000

Description

*Problem* Label padding is not working on iOS. No padding is displayed. Background image is scaled according to padding but it is displayed cropped. *Test case 1*
var win = Ti.UI.createWindow({});

var l = Ti.UI.createLabel({
	text : 'Test',
	backgroundImage : '/appicon.png',
	backgroundPaddingLeft : '50dp',
	backgroundPaddingBottom : '50dp',
	backgroundPaddingRight : '50dp',
	backgroundPaddingTop : '50dp'
});

win.add(l);

win.open();
*Test case 2*
var win = Ti.UI.createWindow({});

var l = Ti.UI.createLabel({
	text : 'Test',
	backgroundColor : "FF0000",
	paddingLeft : '50',
	paddingBottom : '50',
	paddingRight : '50',
	paddingTop : '50'
});

win.add(l);

win.open();
*Logs* No relevant console output.

Attachments

FileDateSize
iOS Simulator Screen shot 14.08.2013 09.34.22.png2013-08-14T07:35:31.000+00006435

Comments

  1. Daniel Sefton 2013-08-14

    Tested and confirmed on iOS 6 simulator with Ti SDK 3.2 CI. I also added "Test case 2" since I'm not sure if the standard padding properties are working either - notice the size of the backgroundColor doesn't change.
  2. Shameer Jan 2014-08-13

    Issue Cannot reproduce Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.3.0.GA iOS SDK: 7.1 iOS iPhone Simulator: 7.1
  3. Ingo Muschenetz 2014-08-13

    [~shameerj] and [~sunila]. We should test this in 3.2.0 and 3.4.0 (latest master). * If it cannot be reproduced in 3.2.0, then mark as Can't Reproduce, with no fix version * If it can be reproduced in 3.2.0 but not in 3.4.0, mark as Fixed in 3.4.0 Reopening.
  4. Ingo Muschenetz 2014-08-14

    I see no justification this should have ben re-resolved. See my comments above, follow those instructions, and then report your updated findings.

JSON Source