Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4414] Property 'top' of the tableViewRow works incorrect in Android and ignored in iPhone

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2011-06-15T08:50:22.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMisha Vasko
AssigneeDon Thorp
Created2011-06-15T06:26:15.000+0000
Updated2017-03-09T23:18:50.000+0000

Description

Property 'top' of the tableViewRow does not works on iOS. On Android the value of 'top' property attached to the inner content of the tableViewRow but the tableViewRow is still in the same position in the tableView. Android: !http://i52.tinypic.com/6fmb6g.png!
var win = Ti.UI.currentWindow;
win.backgroundColor = '#EEE';

var data = [{title:'This is row #1',color:'black',fontStyle: 'italic'},
			{title:'This is row #2',color:'black',fontSize:15, top:30},
			{title:'This is row #3',color:'black'},
			{title:'This is row #4',color:'black'},
			{title:'This is row #5',color:'black'}];

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. Don Thorp 2011-06-15

    Row's in tableviews are not moved outside of their relative positioning. top : 20 indicates the distance from the top of the containing view to layout the row contents.
  2. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source