Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25622

autoAdjustScrollViewInsets fails with extendEdges: [Ti.UI.EXTEND_EDGE_TOP]

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: Release 6.3.0
    • Fix Version/s: Release 7.0.2
    • Component/s: iOS
    • Environment:

      Xcode 9.2
      macOS High Sierra
      SDK: faulty behavior present on both 6.3.0.GA and 7.0.0.GA, works correctly on 6.2.2.GA

    • Story Points:
      5
    • Sprint:
      2018 Sprint 01 SDK

      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

          Issue Links

            Activity

              People

              • Assignee:
                vijaysingh Vijay Singh
                Reporter:
                cornflakesuperstar Jason Kotchoff
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6057
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code