Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11171] iOS: TableView - Unexpected behavior in tableView rows display

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionNot Our Bug
Resolution Date2012-09-26T23:25:36.000+0000
Affected Version/sRelease 2.1.3
Fix Version/sn/a
ComponentsiOS
Labelsqe-ios090112, qe-ios6
ReporterTamila Smolich
AssigneeIngo Muschenetz
Created2012-09-26T18:58:14.000+0000
Updated2017-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

FileDateSize
iOS_4.3.5.png2012-09-26T18:58:14.000+000018056
iOS_6.0.png2012-09-26T18:58:14.000+000012311

Comments

  1. Vishal Duggal 2012-09-26

    Resolved by mistake
  2. Vishal Duggal 2012-09-26

    This is a behavior difference between the various IOS versions. Basically a call to sizeThatFits is returning different values for different SDK's.
  3. Lee Morris 2017-03-13

    Closing ticket as this is not our bug.

JSON Source