Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5669] MobileWeb: Property tableViewRow.height works incorrect in tableView.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-09-13T05:58:26.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.2
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeMisha Vasko
Created2011-09-05T04:44:56.000+0000
Updated2017-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);

Comments

  1. Lee Morris 2017-03-04

    Closing ticket due to MobileWeb no longer being supported.

JSON Source