[TIMOB-12091] iOS: label backgroundImage always use caps
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-18T20:11:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.1.0 |
Components | iOS |
Labels | backgroundLeftCap, backgroundtopcap, label, module_label, qe-testadded |
Reporter | Martin Guillon |
Assignee | Anirudh Nagesh |
Created | 2012-09-10T06:58:40.000+0000 |
Updated | 2013-10-08T06:35:12.000+0000 |
Description
it does not behave like a view because it has a different setBackgroundImage_implementation.
Pull request coming
var win = Ti.UI.createWindow();
var size = Ti.UI.createLabel({
height:100,
width:300,
text:"THIS IS A TETS"
// backgroundLeftCap:40,
// backgroundTopCap:8,
});
win.add(size);
var xhr = Titanium.Network.createHTTPClient();
xhr.onload = function()
{
var f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,'ti.png');
f.write(this.responseData);
size.backgroundImage = f.nativePath;
};
// open the client (and test HTTPS)
xhr.open('GET','http://cdn3.iconfinder.com/data/icons/ginux/Png/Forward-64.png');
// send the data
xhr.send();
win.open();
pull request https://github.com/appcelerator/titanium_mobile/pull/2932
Tested with: SDK:3.1.0.v20130114171802 Studio:3.0.1.201212181159 Device: iphone3GS(v5.0.1) label background image does not use caps unless specified.