{ "id": "171388", "key": "TIMOB-25897", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-05-15T23:59:27.000+0000", "created": "2018-03-23T12:41:07.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "stepper" ], "versions": [ { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" }, { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-05-15T23:59:30.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": "We handle allowed values for our Stepper UI element with:\r\n{code:objc}\r\n if (newValue < [[self stepper] maximumValue] && newValue > [[self stepper] minimumValue]) {\r\n [[self stepper] setValue:newValue];\r\n } else {\r\n NSNumber *currentValue = [NSNumber numberWithDouble:[[self stepper] value]];\r\n [self.proxy replaceValue:currentValue forKey:@\"value\" notification:NO];\r\n NSLog(@\"[WARN] The value passed in must be smaller than the maximum and bigger than the minimum stepper values\");\r\n }\r\n{code}\r\nWhich is wrong. It should be newValue <= maximum && newValue >= minimum.", "attachment": [], "flagged": false, "summary": "iOS: Ti.UI.iOS.Stepper handles \"value\" boundaries incorrect ", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1034, "state": "closed", "name": "2018 Sprint 10 SDK", "startDate": "2018-05-07T00:03:21.636Z", "endDate": "2018-05-21T00:03:00.000Z", "completeDate": "2018-05-20T20:54:58.928Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "437630", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/10046\r\n\r\nTest Case -\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar stepper = Ti.UI.iOS.createStepper({\r\n\ttop: 50,\r\n tintColor: \"green\",\r\n steps: 3,\r\n maximum: 30,\r\n minimum: 0,\r\n value: 30\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttop: 100,\r\n\ttitle: 'Get stepper Value'\r\n});\r\n\r\nbutton.addEventListener('click', function(e){\r\n\tTi.API.info(stepper.value);\r\n});\r\n\r\nwin.add(button);\r\nwin.add(stepper);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-15T08:47:01.000+0000", "updated": "2018-05-15T08:47:01.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }