Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6504] iOS: TableViewRow.font property not supported

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-04-30T17:48:05.000+0000
Affected Version/sRelease 1.7.5
Fix Version/sRelease 2.1.0, Sprint 2012-08
ComponentsiOS
Labelsapi, parity
ReporterPaul Dowsett
AssigneeNeeraj Gupta
Created2011-12-07T12:11:54.000+0000
Updated2012-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();

Comments

  1. Blain Hamon 2012-04-30

    Community pull request merged. Credit to https://github.com/hdogan
  2. Natalie Huynh 2012-06-14

    Tested with iPhone 4 (5.0.1) with 2.1.0.v20120614102250

JSON Source