Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27819] iOS: Incorrect listSection headerTitle spacing in iOS 13+

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 8.3.0, Release 8.3.1, Release 9.3.0, Release 9.2.2
Fix Version/sn/a
ComponentsiOS
Labelsios-13, listsection, listview
ReporterSohail Saddique
AssigneeVijay Singh
Created2020-03-24T17:18:20.000+0000
Updated2020-12-03T18:42:57.000+0000

Description

In iOS 13, in a listview, when you use:
style: Ti.UI.iOS.ListViewStyle.GROUPED
and then use the _headerTitle_ property on a _ListSection_, the spacing between the top of the window and the _ListSection_ is too close. I believe the spacing is incorrectly set on iOS 13. The spacing is set correctly on < iOS 13. Please see screenshot attached. *Steps*

Create new classic app

Replace app.js with code below. Test with iOS 12 and then iOS 13.

var win2 = Titanium.UI.createWindow({
    backgroundColor: 'lightgray',
    title: 'List Section Test'
});

var win1 = Titanium.UI.createNavigationWindow({
   window: win2
});

var listView = Ti.UI.createListView({
    style: Ti.UI.iOS.ListViewStyle.GROUPED
});
var sections = [];

var fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits'});
var fruitDataSet = [
    {properties: { title: 'Apple'}},
    {properties: { title: 'Banana'}},
];
fruitSection.setItems(fruitDataSet);
sections.push(fruitSection);

var vegSection = Ti.UI.createListSection({ headerTitle: 'Vegetables'});
var vegDataSet = [
    {properties: { title: 'Carrots'}},
    {properties: { title: 'Potatoes'}},
];
vegSection.setItems(vegDataSet);
sections.push(vegSection);

listView.sections = sections;
win2.add(listView);
win1.open();

var fishSection = Ti.UI.createListSection({ headerTitle: 'Fish'});
var fishDataSet = [
    {properties: { title: 'Cod'}},
    {properties: { title: 'Haddock'}},
];
fishSection.setItems(fishDataSet);
listView.appendSection(fishSection);

Attachments

FileDateSize
Screen Shot 2020-03-24 at 5.14.26 PM.png2020-03-24T17:18:04.000+0000392541

Comments

  1. Hans Knöchel 2020-03-26

    +1, this is a valid issue.

JSON Source