Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2127] Android: TableViewSection headerView have a fixed height?

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-01-25T18:14:07.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, tableview, tableviewsection
ReporterRafael Kellermann Streit
AssigneeMauro Parra-Miranda
Created2012-10-24T14:51:21.000+0000
Updated2016-03-08T07:41:06.000+0000

Description

Hello, I'm applying a top 40 to my label inside a TableViewSection headerView, and it doesn't have any effect. If I set a fixed height to TableViewSection headerView it doesn't have any effect too.
var headerView = Ti.UI.createView({
	width: Ti.UI.SIZE,
	height: Ti.UI.SIZE,
	backgroundColor: "#FF0000"
});

headerView.add(Ti.UI.createView({
	left: "13dp",
	right: "13dp",
	bottom: 0,
	height: "1dp",
	backgroundColor: "#FFFFFF"
});

headerView.add(Ti.UI.createLabel({
	text: "Foobar",
	left: "13dp",
	right: "13dp",
	bottom: "3dp",
	top: "40dp",
	color: "#FFFFFF",
	font: { fontSize: "14dp", fontWeight: "bold" }
});

Attachments

FileDateSize
2012-10-24 12.49.19.png2012-10-24T14:51:21.000+0000419793

Comments

  1. Daniel Sefton 2012-11-26

    Hi, Please change your test case to something which we can drop into a new project and run. Thanks!
  2. Daniel Sefton 2013-01-25

    I've set this to resolved so that the issue can now be edited to provide more info. Thanks, Daniel

JSON Source