Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19565] iOS: TableView header has wrong default height

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2015-09-22T22:51:31.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.1.0
ComponentsiOS
Labelslistview
ReporterHans Knöchel
AssigneeHans Knöchel
Created2015-09-22T04:15:40.000+0000
Updated2015-10-13T20:11:36.000+0000

Description

The default height of the UITableView section header is 29px, we currently use 20px. See the screenshot for comparison. The fix is simple: Increase the value of the macro DEFAULT_SECTION_HEADERFOOTER_HEIGHT inside the TiUIListView.m from 20 to 29 and check the results. *Demo code*:
var win = Titanium.UI.createWindow({
    title : 'UITableView',
    backgroundColor : '#fff'
});

var list = Ti.UI.createListView();
var sec = Ti.UI.createListSection({headerTitle: "Test"});
var item = {properties: {title: "Title"}};
sec.setItems([item,item,item]);
list.setSections([sec,sec]);
win.add(list);
win.open();

Attachments

FileDateSize
UITableView.png2015-09-22T04:14:16.000+000036394

Comments

  1. Hans Knöchel 2015-09-22

    Comparison after adjusting the height: http://abload.de/img/uitableview-fixed9wuml.png
  2. Hans Knöchel 2015-09-22

    PR: https://github.com/appcelerator/titanium_mobile/pull/7221
  3. Chee Kiat Ng 2015-09-22

    APPROVED. PR merged.
  4. Harry Bryant 2015-10-13

    Verified as fixed, am able to see the corrected default height on sim and device build. OSX El Capitan 10.11 Studio: 4.3.1.201509302304 Ti SDK: 5.2.0.v20151009071418 Appc NPM: 4.2.1-1 Appc CLI: 5.1.0-38

JSON Source