Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11940] Android: TableViewRow does not support horizontalWrap property

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-03-21T04:47:43.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsqe-port
ReporterMartin Guillon
Assigneejithinpv
Created2012-10-16T11:06:02.000+0000
Updated2014-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();

Comments

  1. Martin Guillon 2012-10-16

    pull request https://github.com/appcelerator/titanium_mobile/pull/3248
  2. jithinpv 2013-03-21

    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
  3. Shyam Bhadauria 2013-03-21

    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

JSON Source