[AC-5301] TableView and Window.extendEdges issue
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Duplicate |
| Resolution Date | 2017-10-24T08:08:11.000+0000 |
| Affected Version/s | Appcelerator Studio 4.5.0 |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | n/a |
| Reporter | Andrea Vitale |
| Assignee | Shak Hossain |
| Created | 2017-10-23T06:59:17.000+0000 |
| Updated | 2017-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
| File | Date | Size |
|---|---|---|
| Simulator Screen Shot - iPhone 5s - 2017-10-23 at 08.45.43.png | 2017-10-23T06:53:09.000+0000 | 15005 |
Resolved as it's already fixed in 6.3.0, see TIMOB-25332 for related behavior-reports.