{ "id": "89463", "key": "TIMOB-8513", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-09T03:07:55.000+0000", "created": "2012-04-04T09:03:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_tableview", "qe-testadded", "regression" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-09T15:58:44.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. Problem Description\r\nI have a tableview in a window. If I open that window using tab1.open(theWindow), the tableview appears as it should. BUT if I close that window using tab1.close(theWindow) and open it again later using the same tab1.open(theWindow), the tableview quickly shifts up to it's position. It is almost like it is animating 20px when the window is opened. I am NOT using any animations. Sample code below\r\n\r\nh4. Actual Results\r\nAfter the first time, the tableview appears animated.\r\n\r\nh4. Expected results\r\nTableview without animation\r\n\r\nh4. Test Case \r\n1. Create new mobile project.\r\n2. Paste this code\r\n{code}\r\n//create main window\r\nvar window1 = Titanium.UI.createWindow({ navBarHidden:true,tabBarHidden:true });\r\n \r\n//create and add button to open window 2\r\nvar btn = Ti.UI.createButton({height:100,width:100});\r\nwindow1.add(btn);\r\n \r\n//create window 2 for tableview\r\nvar window2 = Titanium.UI.createWindow({ navBarHidden:true,tabBarHidden:true });\r\n \r\n//create back button to go back to main menu\r\nvar backBtn = Titanium.UI.createButton({height:30,width:50,top:10,left:10});\r\n \r\n//create search bar\r\nvar search = Titanium.UI.createSearchBar({\r\nshowCancel:false\r\n});\r\n \r\n//create data for tableview\r\nvar theData = [\r\n { title:\"One\", hasChild:true },\r\n { title:\"Two\", hasChild:true },\r\n { title:\"Three\", hasChild:true },\r\n { title:\"Four\", hasChild:true },\r\n { title:\"Five\", hasChild:true }\r\n];\r\n \r\n//create tableview\r\nvar menu = Ti.UI.createTableView({\r\nheight:405,\r\ntop:55,\r\ndata:theData,\r\nsearch:search\r\n});\r\n \r\n//add menu and back button to window 2\r\nwindow2.add(menu);\r\nwindow2.add(backBtn);\r\n \r\n//Set up the Tab Group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\nvar tab1 = Titanium.UI.createTab({\r\ntitle:'window1',\r\nwindow: window1\r\n});\r\n \r\n//Add and open tabgroup\r\ntabGroup.addTab(tab1);\r\ntabGroup.open();\r\n \r\n//button click events\r\nbtn.addEventListener('click',function(){tab1.open(window2);})\r\nbackBtn.addEventListener('click',function(){tab1.close(window2);})\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Tableview shifting after 1.8.2 update", "creator": { "name": "livinzlife", "key": "livinzlife", "displayName": "Andrew Woods", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "livinzlife", "key": "livinzlife", "displayName": "Andrew Woods", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Mobile SDK 1.8.2\r\niOS5\r\nTitanium Studio 1.0.9\r\nMacOSX 10.7.3\r\n", "comment": { "comments": [ { "id": "190909", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed by PR #1989", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-13T12:18:26.000+0000", "updated": "2012-04-13T12:18:26.000+0000" }, { "id": "198986", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with SDK 2.1.0.v20120618102300 on iPad 3.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-18T15:12:31.000+0000", "updated": "2012-06-18T15:12:31.000+0000" }, { "id": "202053", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-09T03:07:09.000+0000", "updated": "2012-07-09T03:07:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }