[TIMOB-1034] View in TableViewRow has wrong position
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M10 |
Components | iOS |
Labels | ios, release-1.6.0, tableview, tableviewrow, view |
Reporter | Markus Gerlach |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:41:59.000+0000 |
Updated | 2011-04-17T01:55:00.000+0000 |
Description
very simple example, just a row with a view inside.
when you use top:0 and bottom:0 the view is not inside the row even
it has the same height as the row.
if you scroll up/down the position will be correct if the row
becomes focus again.
if you remove top or bottom the postion is correct in the first
call.
tested with TD 1.2.1 & iPhone SDK 3.1.3
example code:
var win = Ti.UI.currentWindow;
var tv = Titanium.UI.createTableView({
top:0,
data:[],
height:400,
minRowHeight:20,
backgroundColor:'#1b2839',
separatorStyle:Titanium.UI.iPhone.TableViewSeparatorStyle.NONE
});
var row = Ti.UI.createTableViewRow({
backgroundColor:'#fff',
selectionStyle:'none',
height:40,
className: 'row'
});
var view = Ti.UI.createView({
backgroundColor:'#3f6387',
left:10,
top:0,
bottom:0,
right:10,
height:40
});
row.add(view);
var data = [];
data.push(row);
tv.setData(data);
win.add(tv);
Tested 1.6.0RC1. Plausible bug; added test to bugtests.