Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5468] iOS: backgroundLeftCap stretches on TableViewRow

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-08-14T03:49:43.000+0000
Affected Version/sRelease 1.7.2, Release 1.8.0
Fix Version/sSprint 2012-14 API, Release 3.0.0
ComponentsiOS
Labelsapi, backgroundLeftCap, ios, qe-review, qe-testadded, tableViewRow
ReporterEduardo Gomez
AssigneeVishal Duggal
Created2011-10-07T09:40:03.000+0000
Updated2014-06-19T12:43:49.000+0000

Description

Problem

backgroundLeftCap stretches on TableViewRow. The screenshot shows that backgroundLeftCap displays fine on buttons and views, but not on TableViewRows.

Tested on

iOS 4.3 Simulator & iPad 2 v4.3

Repro sequence

var win = Titanium.UI.createWindow({
	backgroundColor : 'white'
});
win.open();

var t = Ti.UI.createTableView();
win.add(t);

for(var i = 0, max = 10; i < max; i++) {
	t.appendRow(Ti.UI.createTableViewRow({
		title : 'ajskld ' + i,
		backgroundColor : 'transparent',
		height : 84,
		backgroundImage : 'WKButton84.png',
		backgroundLeftCap : 10
	}));
}

win.add(Ti.UI.createView({
	width : 200, 
	top : 10,
	height : 84,
	backgroundImage : 'WKButton84.png',
	backgroundLeftCap : 10
}));

win.add(Ti.UI.createButton({
	height : 84,
	width : 200,
	bottom : 10,
	backgroundImage : 'WKButton84.png',
	backgroundLeftCap : 10
}));

Associated HD ticket

APP-981824

Attachments

FileDateSize
TopLeftCap.jpg2011-10-07T09:40:03.000+000061631
WKButton84.png2011-10-07T09:48:30.000+0000872

Comments

  1. Vishal Duggal 2012-07-11

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/2524
  2. Anshu Mittal 2012-08-14

    Reopening to update labels
  3. Satyam Sekhri 2012-08-23

    Occurs on: Titanium Studio: 2.1.2.201208201549 Titanium SDK: 2.1.2.v20120821160113 Device: iPad3 (v5.1) Fixed with SDK: 2.2.0

JSON Source