[TIMOB-11171] iOS: TableView - Unexpected behavior in tableView rows display
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2012-09-26T23:25:36.000+0000 |
Affected Version/s | Release 2.1.3 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-ios090112, qe-ios6 |
Reporter | Tamila Smolich |
Assignee | Ingo Muschenetz |
Created | 2012-09-26T18:58:14.000+0000 |
Updated | 2017-03-13T21:42:16.000+0000 |
Description
Description:
While testing TableView module I noticed a difference in tableView rows display on iOS with 6.0 and iOS with 4.3.5.
Screen shots are attached.
This is not a regression, the same view was noticed on 2.1.2 for iOS 4.3.5.
Steps to reproduce:
1. Run the following code on iPhone 4S (6.0.GM) and iPhone 4S (4.3.5) side by side:
var win = Ti.UI.createWindow({
fullscreen : false,
backgroundColor : 'white'
});
var tableView = Ti.UI.createTableView({
top : '0dp',
bottom : '0dp',
left : '0dp',
right : '0dp'
});
var numRows = 15;
var rows = [];
for (var i = 0; i < numRows; i++){
var tableViewRow = Ti.UI.createTableViewRow({
height : 'auto'
});
var textField = Ti.UI.createTextField({
top:'0dp',
left : '5dp',
right : '5dp',
borderColor : '#CCCCCC',
borderStyle : Ti.UI.INPUT_BORDERSTYLE_BEZEL
});
tableViewRow.add(textField);
rows.push(tableViewRow);
}
tableView.data = rows;
win.add(tableView);
win.open();
2. See the difference
Attachments
File | Date | Size |
---|---|---|
iOS_4.3.5.png | 2012-09-26T18:58:14.000+0000 | 18056 |
iOS_6.0.png | 2012-09-26T18:58:14.000+0000 | 12311 |
Resolved by mistake
This is a behavior difference between the various IOS versions. Basically a call to sizeThatFits is returning different values for different SDK's.
Closing ticket as this is not our bug.