{ "id": "113066", "key": "TIMOB-13637", "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": null, "resolutiondate": null, "created": "2013-04-18T16:02:55.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "reprod" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:19.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Problem description*\r\nWhen setting the visible attribute to false on a button added to a toolbar, the button is not hidden.\r\n\r\n*Steps to reproduce*\r\nRun either test case and see that button 1 is not hidden.\r\n\r\n*Standard test case*\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"#FFF\"\r\n});\r\n\r\nvar button1 = Titanium.UI.createButton({\r\n\ttitle : 'Button 1',\r\n\tvisible : false\r\n});\r\n\r\nvar button2 = Titanium.UI.createButton({\r\n\ttitle : 'Button 2',\r\n});\r\n\r\nflexSpace = Titanium.UI.createButton({\r\n\tsystemButton : Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n});\r\n\r\nvar toolbar = Titanium.UI.iOS.createToolbar({\r\n\titems : [button1, flexSpace, button2],\r\n\tbottom : 0,\r\n\tborderTop : true,\r\n\tborderBottom : false\r\n});\r\nwin.add(toolbar);\r\n\r\nwin.open();\r\n{code}\r\n\r\n*Alloy test case*\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nWith the above, both buttons will display, although btn1 should be hidden from the view.", "attachment": [], "flagged": false, "summary": "iOS: visible property has no effect on buttons added to a toolbar", "creator": { "name": "crmcguire74", "key": "crmcguire74", "displayName": "Christopher R McGuire", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "crmcguire74", "key": "crmcguire74", "displayName": "Christopher R McGuire", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "248483", "author": { "name": "crmcguire74", "key": "crmcguire74", "displayName": "Christopher R McGuire", "active": true, "timeZone": "America/Chicago" }, "body": "Hi there-\n\nActually, I had the property set in my .tss file at first, where I simply set it as a visible: false...I moved it to the xml for the simplicity of the example. When in the .tss I still did not get it to work. I see above that yo are creating the button specifically in code with no visible attributes. Can you try with the visible attributes using a tss file? Or is this attribute not supported, or not supported in Alloy, or not supported in Alloy in the xml or tss or both? If so, is this documented behavior?\n\nThanks.\n", "updateAuthor": { "name": "crmcguire74", "key": "crmcguire74", "displayName": "Christopher R McGuire", "active": true, "timeZone": "America/Chicago" }, "created": "2013-04-19T23:58:15.000+0000", "updated": "2013-04-19T23:58:15.000+0000" }, { "id": "248484", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Chris,\n\nSorry, disregard my last comment, I didn't realise it was buttons which are added to a toolbar since you didn't mention it in the title or description. (Standard buttons work fine)\n\nI've confirmed your issue with Ti SDK 3.1 GA, iOS 6 simulator and will escalate it to engineering.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-20T00:03:01.000+0000", "updated": "2013-04-20T00:03:01.000+0000" }, { "id": "423624", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able 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 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\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-07-06T21:41:25.000+0000", "updated": "2017-07-06T21:41:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }