Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5644] MobileWeb: Wrong position of views in the tableViewRow when property bottom is defined.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-08-19T03:00:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeMaxim Negadaylov
Created2011-08-18T04:45:45.000+0000
Updated2017-03-09T20:31:57.000+0000

Description

Wrong position of views in the tableViewRow when property bottom is defined. Position of the view in the tableViewRow is top = 0. Example:
var win = Ti.UI.currentWindow;
win.backgroundColor = '#EEE';

var row1 = Ti.UI.createTableViewRow({title: 'Row 1'});
var row2 = Ti.UI.createTableViewRow({title: 'Row 2'});
var row3 = Ti.UI.createTableViewRow({title: 'Row 3'});
var row4 = Ti.UI.createTableViewRow({title: 'Row 4'});

var view = Ti.UI.createView({
	backgroundColor:'red',
	width: 10,
	height: 10,
	left: 10,
	bottom: 2
});

row2.add(view);

var data = [row1, row2, row3, row4];

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-09

    Closing ticket as fixed.

JSON Source