{ "id": "83160", "key": "TIMOB-6348", "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-05-24T21:12:37.000+0000", "created": "2011-11-28T22:16:31.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-24T21:12:37.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": "For some reason, when the 'top' property is not set up a progress bar, the progress is always displayed as 100%.\r\n\r\nThis was reported as a doc error, (TIMOB-5809) but I believe this part of the bug is an iOS bug. This behavior does not occur on Android.\r\n\r\nTo reproduce, use the following code in app.js:\r\n\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n\ttitle : 'Progress Bar Test',\r\n\tbackgroundColor : '#fff'\r\n});\r\n\r\nvar pb = Titanium.UI.createProgressBar({\r\n\t// top: 10,\r\n\twidth : 250,\r\n\theight : 50,\r\n\tmin : 0,\r\n\tmax : 10,\r\n\tvalue : 5,\r\n\tcolor : '#fff',\r\n\tmessage : 'Downloading 0 of 10',\r\n\tfont : {\r\n\t\tfontSize : 14,\r\n\t\tfontWeight : 'bold'\r\n\t},\r\n\tstyle : Titanium.UI.iPhone.ProgressBarStyle.PLAIN,\r\n});\r\n\r\nwin1.add(pb);\r\npb.show();\r\nwin1.open();\r\n{code}\r\n\r\nWhen run on iOS, the progress bar shows up as 100% done. If you uncomment the \"top: 10\" line and re-run, the progress bar shows up with the proper value--50% done.\r\n", "attachment": [], "flagged": false, "summary": "iOS: ProgressBar does not display correctly when 'top' is not set", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "420376", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as the issue cannot be reproduced with the following environment; \r\niPhone 7 (10.2) \r\nMacOS 10.11.6 (15G31) \r\nStudio 4.9.0.201705021158 \r\nTi SDK 6.1.0.v20170519131839 \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.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-24T21:12:37.000+0000", "updated": "2017-05-24T21:12:37.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }