[TIMOB-25622] autoAdjustScrollViewInsets fails with extendEdges: [Ti.UI.EXTEND_EDGE_TOP]
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2018-01-15T10:11:18.000+0000 |
Affected Version/s | Release 6.3.0 |
Fix Version/s | Release 7.0.2 |
Components | iOS |
Labels | ios, merge-7.0.2, safearea |
Reporter | Jason Kotchoff |
Assignee | Vijay Singh |
Created | 2017-12-20T00:52:31.000+0000 |
Updated | 2018-01-23T22:10:42.000+0000 |
Description
The autoAdjustScrollViewInsets has stopped working when extendEdges: [Ti.UI.EXTEND_EDGE_TOP] is applied. This was working up until Ti SDK 6.2.2 and it stopped working from Ti SDK 6.3.0.GA onwards. It is still not fixed in the current SDK.
This affects both ListView and TableView components.
Refer to the test case below. The content is not correctly offset underneath the titlebar. The only workaround for the moment seems to be creating a 64dp tall 'spacer' view at the top of the list content.
Hans mentioned a possibly related fix in AC-5301 (TIMOB-25332) however that fix does not resolve the test case below.
Here is my sample code:
var win = Ti.UI.createWindow({
title: "Listview test",
barColor: "#cc0000",
autoAdjustScrollViewInsets: true,
extendEdges: [Ti.UI.EXTEND_EDGE_TOP],
titleAttributes: {
color: '#fff'
},
backgroundColor: '#fff'
});
var list = Ti.UI.createListView({
sections: [Ti.UI.createListSection({
items: [{ properties: { title: 'Test 1' } }, { properties: { title: 'Test 2' } }, { properties: { title: 'Test 3' } }, { properties: { title: 'Test 4' } }, { properties: { title: 'Test 5' } }, { properties: { title: 'Test 6' } }]
})]
});
win.add(list);
var navwin = Titanium.UI.iOS.createNavigationWindow({
window: win
});
navwin.open();
Attachments
File | Date | Size |
---|---|---|
Screen Shot 2017-12-20 at 11.50.08 am.png | 2017-12-20T00:51:22.000+0000 | 215761 |
This issue is raised due to TIMOB-25334. There was a bug in iOS 11.0 , due to which this fix was applied. In iOS 11.2 this issue looks fixed from apple. So we have to revert it.
Test case for TableView :
This issue is fixed in TIMOB-25646.