Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17511] Android: Tableview row not showing the hasChild button correctly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-09-03T21:40:59.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sRelease 3.4.2, Release 3.5.0, Release 4.0.0
ComponentsAndroid
Labelsmodule_tableviewrow, qe-manualtest, qe-testadded, supportTeam
ReporterMarco Cota
AssigneeHieu Pham
Created2014-08-18T21:15:19.000+0000
Updated2014-11-21T18:45:13.000+0000

Description

Issue

When setting the hasChild property as true in the Tableview row and installing the app to a device with 1080x1920 screen size the hasChild button is not correctly rendered being to small to be seen, on smaller sizes the button is correctly shown (screens attached).

Test code

var win = Titanium.UI.createWindow({  
    backgroundColor:'#fff'
});
var datasource=[];
var row = Titanium.UI.createTableViewRow({
	hasChild : true,
	height : 50,
	backgroundColor : '#FFFFFF'
});
/* create items to add to row */
var rowLabel = Titanium.UI.createLabel({
	top : 0,
	left : '15%',
	width : '80%',
	height : 50,
	right:'5%',
	text : "Hello",
	color : '#363636',
	font : {
		fontSize : 14,
		fontWeight : 'bold',
		fontFamily : 'Helvetica Neue'
	}
});
		
row.add(rowLabel);
datasource.push(row);

var tableView=Ti.UI.createTableView({
	top:20,
	data:datasource,
	height:Ti.UI.SIZE,
	separatorColor:'#363636',
	borderColor:'#363636'
});

win.add(tableView);
win.open();

Attachments

FileDateSize
screen_1080x1920.png2014-08-18T21:15:19.000+000031119
screen_768x1280.png2014-08-18T21:15:19.000+000033024

Comments

  1. jithinpv 2014-08-20

    Issue reproduces Titanium Command-Line Interface CLI version 3.3.0, Titanium SDK version 3.3.0 GA, 3.4.0 Latest master Android device : Nexus 5, Android version : 4.4.4, Screen resolution : 1080x1920 Android device : Motorola Moto G, Android version : 4.4.4, Screen resolution : 720x1280
  2. Hieu Pham 2014-09-02

    master PR: https://github.com/appcelerator/titanium_mobile/pull/6010
  3. Lokesh Choudhary 2014-10-03

    Verified the fix. The child button is bigger as compared to the one without the fix. Closing. Environment: Appc Studio : 3.4.0.201409261245 Ti SDK : 3.5.0.v20141002192515 Mac OSX : 10.9.4 Alloy : 1.5.1 CLI - 3.4.0 Code Processor: 1.1.1 Nexus 5 - Android 4.4.4
  4. Hieu Pham 2014-11-05

    3.4.X PR: https://github.com/appcelerator/titanium_mobile/pull/6317

JSON Source