| GitHub Issue | n/a |
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-08-14T03:49:43.000+0000 |
| Affected Version/s | Release 1.7.2, Release 1.8.0 |
| Fix Version/s | Sprint 2012-14 API, Release 3.0.0 |
| Components | iOS |
| Labels | api, backgroundLeftCap, ios, qe-review, qe-testadded, tableViewRow |
| Reporter | Eduardo Gomez |
| Assignee | Vishal Duggal |
| Created | 2011-10-07T09:40:03.000+0000 |
| Updated | 2014-06-19T12:43:49.000+0000 |
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
Pull pending https://github.com/appcelerator/titanium_mobile/pull/2524
Reopening to update labels
Occurs on: Titanium Studio: 2.1.2.201208201549 Titanium SDK: 2.1.2.v20120821160113 Device: iPad3 (v5.1) Fixed with SDK: 2.2.0