Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12091] iOS: label backgroundImage always use caps

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2012-10-18T20:11:17.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0
ComponentsiOS
LabelsbackgroundLeftCap, backgroundtopcap, label, module_label, qe-testadded
ReporterMartin Guillon
AssigneeAnirudh Nagesh
Created2012-09-10T06:58:40.000+0000
Updated2013-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();

Comments

  1. Martin Guillon 2012-10-08

    pull request https://github.com/appcelerator/titanium_mobile/pull/2932
  2. Anshu Mittal 2013-01-17

    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.

JSON Source