[TIMOB-14886] iOS: Label padding not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Reopened |
Resolution | Unresolved |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | ios |
Reporter | Philippe Wueger |
Assignee | Unknown |
Created | 2013-08-14T07:35:31.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
iOS Simulator Screen shot 14.08.2013 09.34.22.png | 2013-08-14T07:35:31.000+0000 | 6435 |
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.
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
[~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.
I see no justification this should have ben re-resolved. See my comments above, follow those instructions, and then report your updated findings.