Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5301] TableView and Window.extendEdges issue

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2017-10-24T08:08:11.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterAndrea Vitale
AssigneeShak Hossain
Created2017-10-23T06:59:17.000+0000
Updated2017-10-24T08:08:11.000+0000

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

FileDateSize
Simulator Screen Shot - iPhone 5s - 2017-10-23 at 08.45.43.png2017-10-23T06:53:09.000+000015005

Comments

  1. Hans Knöchel 2017-10-24

    Resolved as it's already fixed in 6.3.0, see TIMOB-25332 for related behavior-reports.

JSON Source