[TIMOB-11940] Android: TableViewRow does not support horizontalWrap property
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-03-21T04:47:43.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | qe-port |
Reporter | Martin Guillon |
Assignee | jithinpv |
Created | 2012-10-16T11:06:02.000+0000 |
Updated | 2014-06-19T12:42:52.000+0000 |
Description
*Problem description*
Setting horizontalWrap to false on a TableViewRow does not work, and creates bad layout.
*Test case*
var win = Ti.UI.createWindow();
win.backgroundColor = 'white';
var data = [];
for (var x = 0; x < 1; x++) {
var view1 = Ti.UI.createLabel({
width : 200,
backgroundColor : 'blue',
text : 'test',
});
var view2 = Ti.UI.createLabel({
width : 500,
backgroundColor : 'red',
text : 'test2'
});
var row = Ti.UI.createTableViewRow({
height : 50,
layout : 'horizontal',
horizontalWrap : false
});
row.add(view1);
row.add(view2);
data.push(row);
}
// create table view
var tableview = Titanium.UI.createTableView({
data : data
});
win.add(tableview);
win.open();
pull request https://github.com/appcelerator/titanium_mobile/pull/3248
Issue does not reproduces on sdk 3.1.0 Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Device: Samsung galaxy s duos Android version: 4.0.4 but issue reproduces on Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) jithinpv
Seems issue have been fixed in 3.1.0 build.It reproduces in 3.0.2.So closing it now. Environment used for verification - Titanium SDK: 3.1.0.v20130319225749 Titanium Studio:3.0.2.201302151605 Device: LG-P970 Android 2.2.2