{ "id": "97721", "key": "TIMOB-10062", "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-21T23:23:46.000+0000", "created": "2012-07-20T11:33:29.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-21T23:23:46.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 \r\nWhen putting tabbedBars inside of a toolBar (on iOS), and then changing the visibility of that tabbedBar, the sizing and positioning of the tabbedBar changes unexpectedly. This method works as expected in builds 2.0.1GA and below. \r\n\r\nh4. Example\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nvar win = Titanium.UI.createWindow({\r\n\tlayout : 'vertical'\r\n});\r\n\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle : 'Toggle!'\r\n});\r\n\r\nvar tabbedBar1 = Ti.UI.iOS.createTabbedBar({\r\n\tlabels : ['One', 'Two'],\r\n\tvisible: false\r\n});\r\n\r\n//tabbedBar1.visible = vis;\r\n\r\nvar tabbedBar2 = Ti.UI.iOS.createTabbedBar({\r\n\tlabels : ['Three', 'Four']\r\n});\r\n\r\nvar flexSpace = Ti.UI.createButton({\r\n\tsystemButton : Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n});\r\n\r\nbtn.addEventListener('click', function(e){\r\n\tif(tabbedBar1.visible == false){\r\n\t\ttabbedBar1.visible = true;\r\n\t} else {\r\n\t\ttabbedBar1.visible = false;\r\n\t}\r\n\tTi.API.info(tabbedBar1.visible);\r\n});\r\n\r\nwin.add(btn);\r\nwin.setToolbar([tabbedBar1, flexSpace, tabbedBar2]);\r\n\r\nwin.open({\r\n\tmodal : true\r\n}); \r\n{code}\r\n\r\nh4. Steps to reproduce\r\n1. Put the code above into titanium\r\n2. Run\r\n3. Notice tabbed bar 'one' and 'two'\r\n4. click toggle at top of the screen\r\n5. Notice incorrect behavior once tabbed bar is visible again", "attachment": [], "flagged": false, "summary": "iOS: tabbedBar within toolBar visibility changes disrupt positioning and tabbedBar behavior", "creator": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "2.1.0GA, 2.02GA ", "comment": { "comments": [ { "id": "246835", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-10T09:00:48.000+0000", "updated": "2013-04-10T09:00:48.000+0000" }, { "id": "422527", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170620103414\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-21T23:23:46.000+0000", "updated": "2017-06-21T23:23:46.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }