Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5627] MobileWeb: Property 'height' works incorrect with tableViewRow

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-06-15T05:39:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeMaxim Negadaylov
Created2011-06-15T05:07:05.000+0000
Updated2017-03-09T20:10:48.000+0000

Description

Property 'height' does not changes visual size of the tableViewRow but the content of the row is repositioned such way as the height of the row has been changed.
var win = Ti.UI.currentWindow;
win.backgroundColor = '#EEE';

var data = [{title:'This is row #0',backgroundColor:'blue', fontStyle: 'italic'},
			{title:'This is row #1',fontSize:15, hasCheck:true,height:100},
			{title:'This is row #2',hasChild:true},
			{title:'This is row #3',hasDetail:true},
			{title:'This is row #4',selectedBackgroundImage:'/images/chat.png',selectedColor:'red'}
			];

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:40,
	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-09

    Closing ticket as fixed.

JSON Source