{ "id": "79903", "key": "TIMOB-5184", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-06-09T17:41:21.000+0000", "created": "2011-08-31T15:12:13.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "Parity", "api" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-09T17:41:21.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\nWhen we have more than 5 views inside the ScrollableView and in every view different instance of ToolBar than after changing the orientation some of the ToolBars are missing their content/components (buttons, labels). Please see the screenshots.\r\n\r\nh3.Reproducible Steps\r\n\r\n1. Execute the attached code.\r\n2. Stay with Portrait orientation\r\n3. Go to the 6th view\r\n4. Change from Portrait orientation into Landscape and than go back to Portrait\r\n5. Go back to the 5th view\r\n6. Now you can see an empty ToolBar - the components that were there are missing (buttons, labels)\r\n\r\nh3.Regression\r\nWorks correctly with SDK 1.6.3\r\n\r\nh3.Sample Code\r\n\r\n{code}\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\n\r\n\r\nvar scrollable = Titanium.UI.createScrollableView({\r\n\t\tshowPagingControl:true,\r\n\t\tcurrentPage:0,\r\n\t\tcontentWidth:320,\r\n\t contentHeight:640,\r\n\t top:0,\r\n\t left:0,\r\n\t right:0,\r\n\t bottom:0,\r\n\t showVerticalScrollIndicator:false,\r\n\t showHorizontalScrollIndicator:false,\r\n\t backgroundColor: \"#ccc\"\r\n\t});\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nwin1.orientationModes = [\r\n\tTitanium.UI.PORTRAIT,\r\n\tTitanium.UI.LANDSCAPE_LEFT,\r\n\tTitanium.UI.LANDSCAPE_RIGHT,\r\n\tTitanium.UI.UPSIDE_PORTRAIT\r\n];\r\nlabel = {};\r\nsetup = {};\r\ninfo = {};\r\nback = {};\r\nspace1 = {};\r\nspace2 = {};\r\n\r\nfor(i=0; i<6; i++) label[i] = Titanium.UI.createLabel({text:\"Photo #\", color:'#fff'});\r\nfor(i=0; i<6; i++) space1[i] = Titanium.UI.createButton({systemButton: Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE});\r\nfor(i=0; i<6; i++) space2[i] = Titanium.UI.createButton({systemButton: Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE});\r\nfor(i=0; i<6; i++) setup[i] = Titanium.UI.createButtonBar({labels:['Setup'], style:Titanium.UI.iPhone.SystemButtonStyle.BAR});\r\nfor(i=0; i<6; i++) info[i] = Titanium.UI.createButtonBar({labels:['Info'], style:Titanium.UI.iPhone.SystemButtonStyle.BAR});\r\nfor(i=0; i<6; i++) back[i] = Titanium.UI.createButtonBar({labels:['Back'], style:Titanium.UI.iPhone.SystemButtonStyle.BAR});\r\n\r\ntopBar = {};\r\nfor(i=0; i<6; i++) topBar[i] = Titanium.UI.createToolbar({items:[back[i], space1[i], label[i], space2[i], setup[i], info[i]], left:0, right:0, top:0, height:5, barColor:'#000', opacity:0.6});\r\n\r\nvar w1 = Ti.UI.createView();\r\nvar w2 = Ti.UI.createView();\r\nvar w3 = Ti.UI.createView();\r\nvar w4 = Ti.UI.createView();\r\nvar w5 = Ti.UI.createView();\r\nvar w6 = Ti.UI.createView();\r\nw1.add(topBar[0]);\r\nw2.add(topBar[1]);\r\nw3.add(topBar[2]);\r\nw4.add(topBar[3]);\r\nw5.add(topBar[4]);\r\nw6.add(topBar[5]);\r\n\r\nscrollable.views = [w1,w2,w3,w4,w5,w6];\r\n\r\nwin1.add(scrollable);\r\nwin1.open();\r\n\r\n{code}\r\n\r\nh3.Associated Helpdesk ticket\r\nhttp://appc.me/c/APP-659713\r\n\r\n", "attachment": [ { "id": "22750", "filename": "1.png", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-31T15:12:13.000+0000", "size": 94529, "mimeType": "image/png" }, { "id": "22749", "filename": "2.png", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-31T15:12:13.000+0000", "size": 99803, "mimeType": "image/png" }, { "id": "22748", "filename": "3.png", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-31T15:12:13.000+0000", "size": 87007, "mimeType": "image/png" }, { "id": "22747", "filename": "tabs.zip", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-31T15:12:13.000+0000", "size": 1580577, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: ToolBar missing its content (buttons) while orientation change on ScrollableView", "creator": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 4.3, Simulator", "comment": { "comments": [ { "id": "195057", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "body": "still bug - tested with Ti SDK 2.0.1.GA2, still an issue.", "updateAuthor": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-16T14:49:08.000+0000", "updated": "2012-05-16T15:45:18.000+0000" }, { "id": "250938", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "issue reproduces\n\nTested with\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T04:52:18.000+0000", "updated": "2013-05-09T04:52:18.000+0000" }, { "id": "421659", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as the issue cannot be reproduced with the following environment; \r\niPhone 7 (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170606103146\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-09T17:41:21.000+0000", "updated": "2017-06-09T17:41:21.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }