Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5893] iOS: iPad - Reopening grouped tableview renders additional blank space on the top of the window

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-02-11T22:08:59.000+0000
Affected Version/sRelease 1.7.3, Release 1.7.4, Release 1.8.0, Release 3.1.0
Fix Version/sRelease 3.2.0
ComponentsiOS
Labelscore, qe-closed-3.2.2, supportTeam, tbs-1.8.2
ReporterKarol Pomaski
AssigneeIngo Muschenetz
Created2011-10-28T09:03:24.000+0000
Updated2014-03-10T10:53:47.000+0000

Description

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

Attachments

FileDateSize
after.png2011-10-28T09:03:24.000+000047922
before.png2011-10-28T09:03:24.000+000068115

Comments

  1. jithinpv 2013-05-08

    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
  2. Shak Hossain 2014-02-11

    This issue can't be reproduced with TISDK 3.2 or higher. Therefore, marking it as resolved.
  3. Paras Mishra 2014-03-10

    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

JSON Source