Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6846] Android: Bottom Padding in TableViewRow is bigger in Android

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-05-18T15:31:19.000+0000
Affected Version/sRelease 1.7.5, Release 1.8.0.1
Fix Version/sRelease 2.0.1
ComponentsAndroid
Labelsmodule_tableviewrow, parity, qe-testadded
ReporterMauro Parra-Miranda
AssigneeNeeraj Gupta
Created2011-12-22T11:26:18.000+0000
Updated2012-08-10T15:52:18.000+0000

Description

PROBLEM DESCRIPTION

With the same code, you will see a different padding in tableviewrows, even if you set the height to 'auto'. Customer would like to get parity with iOS here.

STEPS TO REPRODUCE

1. Create a new mobile project 2. Paste the code above into app.js 3. Compile to Android

ACTUAL RESULTS

The row is showing a padding in the bottom, that is not appearing in iOS.

CODE

var win = Ti.UI.createWindow({
	title:'testing labels',
});

var row=Ti.UI.createTableViewRow({ 
	layout:'vertical', 
	height:'auto' 
}); 
var firstLabel= Ti.UI.createLabel({
	top:10, 
	left:15, 
	right:15, 
	height:'auto', 
	color:'#363636', 
	text:'This is First Label in the Row' }); 
var secondLabel= Ti.UI.createLabel({ 
	top:10, 
	left:15, 
	right:15, 
	height:'auto', 
	color:'#363636', 
	text:'This is Second Label in the Row' }); 
row.add(firstLabel); 
row.add(secondLabel);
var data = [];
data[0]=row;
var table=Ti.UI.createTableView({
	data:data,
});
win.add(table);
win.open();

Attachments

FileDateSize
Screen shot 2011-12-22 at 11.22.08 AM.png2011-12-22T11:37:32.000+000065330

Comments

  1. Sridhar D 2011-12-23

    Could you please mark Priority as High, as our project is ready for Production.
  2. Neeraj Gupta 2012-01-07

    This change will affect many other existing applications so we need to be careful with this change. We should not try to do it in a patch release.
  3. Junaid Younus 2012-05-18

    Tested with 2.0.1GA2 on a Samsung Galaxy S2 and iOS simulator. Unable to reproduce the issue. Ticket closed.
  4. Shyam Bhadauria 2012-08-03

    Working fine now.Verified it with the following specifications Tested with Titanium SDK: 2.1.1.v20120716180600 Tested with Titanium  Studio: 2.1.1.201207161421 Device - Samsung Galaxy Nexus Android 4.0.2 Machine OS - MAC 10.7.3

JSON Source