Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1034] View in TableViewRow has wrong position

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:00.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M10
ComponentsiOS
Labelsios, release-1.6.0, tableview, tableviewrow, view
ReporterMarkus Gerlach
AssigneeReggie Seagraves
Created2011-04-15T02:41:59.000+0000
Updated2011-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);

Comments

  1. Stephen Tramer 2011-04-15

    Tested 1.6.0RC1. Plausible bug; added test to bugtests.

JSON Source