{ "id": "114683", "key": "TIMOB-13942", "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": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2015-01-29T23:26:02.000+0000", "created": "2013-05-21T03:42:27.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "slider" ], "versions": [ { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-06-09T23:50:40.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Problem*\r\nThe example below works in the browsers but will not let the user change the value from 0 on Android.\r\n\r\n*Test case*\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({backgroundColor:\"#FFF\"});\r\n\r\nvar slider = Titanium.UI.createSlider({\r\n\ttop : 50,\r\n\tmin : 0.9,\r\n\tmax : 1.1,\r\n\twidth : '100%',\r\n\tvalue : 1\r\n});\r\nwin.add(slider);\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext : slider.value,\r\n\twidth : '100%',\r\n\theight : 'auto',\r\n\ttop : 30,\r\n\tleft : 0,\r\n\ttextAlign : Ti.UI.TEXT_ALIGNMENT_CENTER\r\n});\r\nwin.add(label);\r\n\r\nslider.addEventListener('change', function(e) {\r\n\tlabel.text = String.format(\"%3.1f\", e.value);\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Slider ignores values when min/max are floats", "creator": { "name": "jalbrant", "key": "jalbrant", "displayName": "Jeremiah Albrant", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalbrant", "key": "jalbrant", "displayName": "Jeremiah Albrant", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android", "closedSprints": [ { "id": 309, "state": "closed", "name": "2015 Sprint 02 SDK", "startDate": "2015-01-17T01:00:16.697Z", "endDate": "2015-01-31T01:00:00.000Z", "completeDate": "2015-02-02T14:36:09.696Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "253207", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Android 4.1.2 x86 emulator with Ti SDK 3.1 GA and 3.2 CI.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-21T20:09:55.000+0000", "updated": "2013-05-21T20:09:55.000+0000" }, { "id": "341289", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Android doesn't ignore these values, it simply round them to integers before proceed. Android doesn't support float values for min,max, minrange, and maxrange. Please refer to the documentation: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.ProgressBar-property-min", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-29T23:25:27.000+0000", "updated": "2015-01-29T23:25:27.000+0000" }, { "id": "354707", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as this is resolved as \"won't fix\".", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-09T23:50:36.000+0000", "updated": "2015-06-09T23:50:36.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }