[TIMOB-5669] MobileWeb: Property tableViewRow.height works incorrect in tableView.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-09-13T05:58:26.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.7.2 |
Components | MobileWeb |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Misha Vasko |
Created | 2011-09-05T04:44:56.000+0000 |
Updated | 2017-03-04T00:10:29.000+0000 |
Description
Property tableViewRow.height works incorrect in tableView. If tableViewRow.height < 50 the actual height of the row in the browser will be still 50px.
Example:
Expected behavior: height of the first row should be smaller than other rows.
var win = Ti.UI.currentWindow;
win.backgroundColor = '#EEE';
var data = [{title:'This is row #1',backgroundColor:'blue', height: 30, fontStyle: 'italic'},
{title:'This is row #2',fontSize:15},
{title:'This is row #3'},
{title:'This is row #4'},
{title:'This is row #5'}];
var tableView = Ti.UI.createTableView({
width: 300,
height: 200,
top: 70,
left: 10,
backgroundColor: '#AAA',
data:data
});
var closeButton = Ti.UI.createButton({
title:'Close Window',
height:50,
width:140,
fontSize: 16,
top:10,
left:90
});
closeButton.addEventListener('click', function(){
Titanium.UI.currentWindow.close();
});
win.add(closeButton);
win.add(tableView);
Closing ticket due to MobileWeb no longer being supported.