{ "id": "84077", "key": "TIMOB-6776", "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": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-12-22T11:36:36.000+0000", "created": "2011-12-19T17:29:06.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-29T16:21:36.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 DESCRIPTION\r\nWhen a view has a height or width that is 'auto' and it ends up being 0 there is an error in the console. If possible we would like this error to also show the line number of the view in question.\r\n\r\nh4. STEPS TO REPRODUCE\r\n1. Create new mobile project\r\n2. Add the code to app.js\r\n3. Run\r\n\r\nh4. ACTUAL RESULTS\r\n[WARN] [object TiUIView] has an auto width value of 0, meaning this view may not be visible.\r\n\r\nh4. EXPECTED RESULTS\r\nThe same message, with the file and number of line of this happening. \r\n[WARN] [object TiUIView @ app.js:3] has an auto width value of 0, meaning this view may not be visible.\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nvar win=Ti.UI.createWindow({\r\n\tbackground:'white',\r\n});\r\nvar view=Ti.UI.createView({\r\n\twidth:0,\r\n\theight:0,\r\n\tbackground:'white',\r\n});\r\nvar view2 = Ti.UI.createView({\r\n\twidth:'auto',\r\n\theight:'auto',\r\n});\r\nview.add(view2);\r\nwin.add(view);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Add line number to the error when a width or height in auto ends being 0", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": null, "comment": { "comments": [ { "id": "176656", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving this issue requires new code to interact with JSCore to get information about the current line of execution. Doing this outside of the debugger hooks may not even be possible. This has to be postponed until the 1.9 timeframe as a feature, not a bug.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-19T18:11:26.000+0000", "updated": "2011-12-19T18:11:26.000+0000" }, { "id": "177039", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "JSCore definitely doesn't give iOS hooks to be able to do this without throwing exceptions, and Android reports the same. For internal messages like this we cannot report a line number, especially since autosizing may not even take place as part of serialized JS execution due to the threading environment.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-22T11:36:36.000+0000", "updated": "2011-12-22T11:36:36.000+0000" }, { "id": "416166", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T16:21:36.000+0000", "updated": "2017-03-29T16:21:36.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }