{ "id": "91514", "key": "TIMOB-9035", "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": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13406", "description": "Sprint 2012-10 API", "name": "Sprint 2012-10 API", "archived": true, "released": true, "releaseDate": "2012-05-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-11T04:37:57.000+0000", "created": "2012-05-07T17:22:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "module_window", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-11T13:49:04.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": "h3. Problem\r\n\r\nThe contents of the window get off screen and the controls become inaccessible if a scrollview is added to the window. The controls return back to normal after orientation change.\r\n\r\nh3. Steps to Reproduce\r\n\r\nThe first window has a button that opens the second window. The second window has a label and a button. The button on the second window closes the second window. The first time you open the second window the layout is fine. The second time you open the window the label is gone, and you can't click on the button to close the window. The code works if we change the device orientation. Also, switching the view from a scroll view to a plain view resolves the issue.\r\n\r\n{noformat}\r\n\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar window1 = Ti.UI.createWindow({\r\n orientationModes : [Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT, Ti.UI.UPSIDE_PORTRAIT],\r\n backgroundColor : '#AA0000',\r\n top : 44,\r\n left : 0,\r\n bottom : 0,\r\n width : '100%'\r\n});\r\nvar openButton = Ti.UI.createButton({\r\n title : 'Open Window 2',\r\n height : 44,\r\n width : 150\r\n});\r\nopenButton.addEventListener('click', function() {\r\n window2.open();\r\n});\r\n\r\nwindow1.add(openButton);\r\nwindow1.open();\r\n\r\nvar window2 = Ti.UI.createWindow({\r\n orientationModes : [Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT, Ti.UI.UPSIDE_PORTRAIT],\r\n backgroundColor : '#00FF00',\r\n top : 44,\r\n left : 0,\r\n bottom : 0,\r\n width : '100%'\r\n});\r\n\r\n/*\r\n * Making the scrollview as a normal view here works fine\r\n */\r\nvar view2 = Ti.UI.createScrollView({\r\n width : '100%',\r\n backgroundColor : '#0000FF',\r\n top : 0,\r\n left : 0,\r\n height:'100%'\r\n});\r\n\r\nvar closeButton = Ti.UI.createButton({\r\n title : 'Close Window 2',\r\n height : 44,\r\n width : 150,\r\n //left:10,\r\n //top:10\r\n});\r\ncloseButton.top = 10;\r\ncloseButton.left = 10;\r\n\r\nvar someTextLabel = Ti.UI.createLabel({\r\n backgroundColor : '#FFFFFF',\r\n text : 'Title Label',\r\n left : 10,\r\n top : 75,\r\n width : Ti.UI.SIZE,\r\n height:Ti.UI.SIZE\r\n});\r\n//someTextLabel.top = 75;\r\n//someTextLabel.left = 10;\r\ncloseButton.addEventListener('click', function() {\r\n window2.close();\r\n});\r\nview2.add(closeButton);\r\nview2.add(someTextLabel);\r\n\r\nwindow2.add(view2); \r\n\r\n{noformat}\r\n\r\n\r\n", "attachment": [ { "id": "27576", "filename": "IMG_3865.mov", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-05-07T17:22:29.000+0000", "size": 3266900, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "iOS: Issue with with window navigation when window contains a scrollview", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium SDK: 1.8.2\r\nPlatform OS: iOS ver 4.3", "comment": { "comments": [ { "id": "195031", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/2198", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-16T11:31:07.000+0000", "updated": "2012-05-16T11:31:07.000+0000" }, { "id": "195207", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master pull merged , keeping ticket open for the 2.0.X PR ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-17T14:24:36.000+0000", "updated": "2012-05-17T14:24:36.000+0000" }, { "id": "195330", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.2.v20120517153200 on iPhone 4s 5.1", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-18T14:44:04.000+0000", "updated": "2012-05-18T14:44:04.000+0000" }, { "id": "202626", "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-11T04:37:05.000+0000", "updated": "2012-07-11T04:37:05.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }