{ "id": "173978", "key": "TIMOB-27307", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "2019-08-05T15:11:12.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-08-06T20:12:24.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "Add visibility property to View (and any control that inherits from View) to support collapse, in addition to hidden.\r\n\r\nCurrently, if you want to collapse a view and you set the visible property to false, it will be invisible but still take up real estate on the screen. Would be great to support a \"visibility\" property (and probably align it with the CSS property def: https://www.w3schools.com/cssref/pr_class_visibility.asp) so that a control can be hidden and collapsed.\r\n\r\n\r\n{code:xml}\r\n\r\n\r\n\r\n{code}\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Add visibility property to views to support collapse ", "creator": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "450277", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You can set the view's \"width\" and \"height\" properties to zero to collapse it.\r\n\r\nMost native UI frameworks (particularly Apple's and Microsoft's) don't support a \"collapse\" like property. Meaning we would have to set the width/height to zero natively anyways to do this. Titanium is tightly bound to native UI and I think we should accept this behavior.\r\n\r\nNote that Android supports a \"collapse\" like feature via {{View.GONE}}, but this is the only native UI framework that I know of that does.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-05T17:21:06.000+0000", "updated": "2019-08-05T17:23:04.000+0000" }, { "id": "450299", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Note that Android also supports this on Titanium already, e.g. hidden vs. gone. It just needs iOS parity", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-08-06T20:12:24.000+0000", "updated": "2019-08-06T20:12:24.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }