Problem
Grouped tableviews on iPad will display right against the top of the window the first time they are displayed, the second time the window is opened the
tableView has some extra padding on top. This issue exists only on iPad.
Reproducible Steps
1. Run the following test case on iPad
2. Press the giant button
3. Observe the table view against the top of the window
4. Click the TableView to close the window
5. Press the giant button again
6. Observe spacing between top of TableView and window.
Sample Code
var win = Ti.UI.createWindow();
var win2 = Ti.UI.createWindow();
var table = Ti.UI.createTableView({style : Ti.UI.iPhone.TableViewStyle.GROUPED, top:0});
var data = [
{
title : "row 1",
header : "heading"
},
{
title : "row 2"
}
];
table.setData(data);
var btn = Ti.UI.createButton({title : "open"});
win.add(btn);
btn.addEventListener('click', function (e) {
win2.open();
});
table.addEventListener('click', function (e) {
win2.close();
});
win2.add(table);
win.open();
Associated HelpDesk Ticket
http://appc.me/c/APP-559499
issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 iOS iPhone Simulator: iOS SDK version: 6.0
This issue can't be reproduced with TISDK 3.2 or higher. Therefore, marking it as resolved.
Verified the fix on: Device : iPad Simulator, iOS version:7.1 SDK: 3.2.2.v20140221161255 CLI version : 3.2.1 OS : MAC OSX 10.9 Alloy: 1.3.1 ACS: 1.0.14 npm:1.3.2 Appcelerator Studio, build: 3.2.2.201402280732 titanium-code-processor: 1.1.0 XCode : 5.1 Beta 5