[TIMOB-6504] iOS: TableViewRow.font property not supported
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-30T17:48:05.000+0000 |
Affected Version/s | Release 1.7.5 |
Fix Version/s | Release 2.1.0, Sprint 2012-08 |
Components | iOS |
Labels | api, parity |
Reporter | Paul Dowsett |
Assignee | Neeraj Gupta |
Created | 2011-12-07T12:11:54.000+0000 |
Updated | 2012-06-14T15:33:38.000+0000 |
Description
Per Paul's original APIDoc ticket, TableViewRow.font works on Android, but not on iOS.
If you run the following code on Android, row 2 shows a larger font. On iOS, all rows use
the same font.
As per the original ticket, neither platform supports any font properties on the table itself.
var win = Ti.UI.createWindow({
backgroundColor : "white",
exitOnClose:true
});
var data = [];
data[0] = Ti.UI.createTableViewRow({hasChild:true,title:'Row 1'});
data[1] = Ti.UI.createTableViewRow({hasDetail:true,title:'Row 2', font:{ fontSize:40 }});
data[2] = Ti.UI.createTableViewRow({hasCheck:true,title:'Row 3'});
data[3] = Ti.UI.createTableViewRow({title:'Row 4'});
var tableview = Ti.UI.createTableView({
minRowHeight:'200.5',
font:{ fontSize:40 }, // has no effect
data:data
});
win.add(tableview);
win.open();
Community pull request merged. Credit to https://github.com/hdogan
Tested with iPhone 4 (5.0.1) with 2.1.0.v20120614102250