Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-5301

TableView and Window.extendEdges issue

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Appcelerator Studio 4.5.0
    • Component/s: Titanium SDK & CLI
    • Labels:
      None
    • Environment:

      Xcode 9.0.1
      macOS High Sierra
      CLI 6.2.4
      SDK: behavior present on both 6.1.1.GA and 6.2.2.GA

      Description

      As you can see in the attached screenshot, there is an issue with a TableView that is inside a Window with extendEdges property set to: [Ti.UI.EXTEND_EDGE_TOP].

      Here is my sample code:

                  var w = Ti.UI.createWindow({
                      barImage: "/template/transparent-nav-bar.png",
                    	shadowImage: "/template/transparent-nav-bar.png",
                    	translucent: true,
                      includeOpaqueBars: true,
                      autoAdjustScrollViewInsets: true,
                    	extendEdges: [Ti.UI.EXTEND_EDGE_TOP],
                      backgroundColor: 'red'
                  });
       
                  var r = Ti.UI.createTableViewRow({
                      height: 50,
                      backgroundColor: "white",
                      children: [Ti.UI.createLabel({
                          text: "Unique row",
                          left: 15,
                      })]
                  });
       
                  var t = Ti.UI.createTableView({
                      backgroundColor: 'lime',
                      data: [r]
                  });
       
                  w.add(t);
                  w.add(Ti.UI.createView({
                      top: 0,
                      right: 0,
                      width: 100,
                      height: 100,
                      backgroundColor: 'purple'
                  }));
       
                  var nw = Ti.UI.iOS.createNavigationWindow({
                      window: w
                  });
       
                  nw.open();
      

      The expected behavior is that the "Unique row" must start at the top of the screen like the purple square.

      EDIT: Tested on an iOS 10.3 simulator and everything is working fine. So it's an iOS 11 related issue.

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain
              Reporter:
              Andrea.Vitale Andrea Vitale
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code