{ "id": "93448", "key": "TIMOB-10335", "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": "2013-03-19T12:27:56.000+0000", "created": "2012-06-19T00:54:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "exalture", "layout" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" } ], "issuelinks": [], "assignee": { "name": "srikanthr", "key": "srikanthr", "displayName": "srikanth ravipati", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T16:40:06.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 description\r\nSize issue when changing a tabbedBar in a Toolbar to visible from invisible\r\n\r\nh3. Steps to reproduce\r\nRun the sample code below.\r\nFirst tabbedBar it's invisible. When set to visible, it actually expand to the maximum Toolbar size.\r\nThis is not reproducible using TiSDK 2.0.1.v20120412163344\r\nIt's reproducible from 2.0.2 GA\r\n\r\n\r\nh4. Sample code\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", "attachment": [], "flagged": false, "summary": "iOS: Size issue when changing a tabbedBar in Toolbar to visible from invisible", "creator": { "name": "gioppy", "key": "gioppy", "displayName": "Giovanni B.", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 2.0.2 GA - 2.1.1 GA\r\niOS 5", "comment": { "comments": [ { "id": "208682", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you please point out what the steps are to reproduce this bug? Is the repositioning of the tabbedBar the bug? Or is that a something that happens in the code? Please be more clear in the description, and as always, samples of test code to show the error make your point much more clear and easy to fix.", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-20T10:28:17.000+0000", "updated": "2012-07-20T10:28:17.000+0000" }, { "id": "208696", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Gionvani, \r\n\r\nI am posting some code that I think may be the bug you are experiencing please respond confirming this is the behavior you are describing. Thank you.\r\n\r\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-20T10:53:44.000+0000", "updated": "2012-07-20T10:53:44.000+0000" }, { "id": "208701", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Giovani,\r\n\r\nHere is a workaround that will fix this problem for the meantime. I am moving this bug to TiMob and will respond shortly with the ticket information. Thank you for bringing this to our attention. \r\n\r\nThanks,\r\n\r\nCarter\r\n\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n layout : 'vertical'\r\n});\r\n\r\n\r\nvar btn = Ti.UI.createButton({\r\n title : 'Toggle!'\r\n});\r\n\r\nvar tabbedBar1 = Ti.UI.iOS.createTabbedBar({\r\n labels : ['One', 'Two']\r\n});\r\n\r\n//tabbedBar1.visible = vis;\r\n\r\nvar tabbedBar2 = Ti.UI.iOS.createTabbedBar({\r\n labels : ['Three', 'Four']\r\n});\r\n\r\nvar flexSpace = Ti.UI.createButton({\r\n systemButton : Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n});\r\n\r\nvar visible = false;\r\n\r\nbtn.addEventListener('click', function(e){\r\n if(visible){\r\n\t\twin.setToolbar([tabbedBar1, flexSpace, tabbedBar2]);\r\n } else {\r\n\t\twin.setToolbar([flexSpace, tabbedBar2]);\r\n }\r\n visible = !visible;\r\n Ti.API.info(visible);\r\n});\r\n\r\nwin.add(btn);\r\nwin.setToolbar([tabbedBar1, flexSpace, tabbedBar2]);\r\n\r\nwin.open({\r\n modal : true\r\n});\r\n{code}", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-20T11:04:41.000+0000", "updated": "2012-08-07T13:42:12.000+0000" }, { "id": "242895", "author": { "name": "srikanthr", "key": "srikanthr", "displayName": "srikanth ravipati", "active": true, "timeZone": "America/Los_Angeles" }, "body": "it is already fix in 3.0.2.", "updateAuthor": { "name": "srikanthr", "key": "srikanthr", "displayName": "srikanth ravipati", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T12:27:56.000+0000", "updated": "2013-03-19T12:27:56.000+0000" }, { "id": "413692", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T16:40:06.000+0000", "updated": "2017-03-20T16:40:06.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }