[TIMOB-4414] Property 'top' of the tableViewRow works incorrect in Android and ignored in iPhone
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-06-15T08:50:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Don Thorp |
Created | 2011-06-15T06:26:15.000+0000 |
Updated | 2017-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);
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.Closing ticket as invalid.