[TIMOB-5644] MobileWeb: Wrong position of views in the tableViewRow when property bottom is defined.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-08-19T03:00:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Maxim Negadaylov |
Created | 2011-08-18T04:45:45.000+0000 |
Updated | 2017-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);
Closing ticket as fixed.