{ "id": "98240", "key": "TIMOB-10222", "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": [ { "id": "13870", "description": "", "name": "Sprint 2012-16 API", "archived": true, "released": true, "releaseDate": "2012-08-13" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-07T14:30:26.000+0000", "created": "2012-07-27T15:23:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_textarea", "parity", "qe-review", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:55.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": "1. Run this code\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\n \r\nvar txt = Ti.UI.createTextArea({\r\n top: 150,\r\n height: 100,\r\n backgroundColor: \"white\" \r\n});\r\n \r\nvar button = Ti.UI.createButton( {\r\n title: \"set max length to 10\"\r\n});\r\n \r\nbutton.addEventListener('click', function(e) {\r\n txt.maxLength = 10;\r\n});\r\nTi.API.info(\"maxLength: \" + txt.maxLength);\r\nwin.add(txt);\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n\r\n2. Check log, make sure maxLength is -1\r\n3. Click on button\r\n4. Start typing, the content should not exceed 10 characters.\r\n5. Re-run code, this time enter 20+ characters before click on button", "attachment": [], "flagged": false, "summary": "iOS: Implement maxLength for TextArea", "creator": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "211286", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/2670", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-02T14:58:00.000+0000", "updated": "2012-08-02T14:58:00.000+0000" }, { "id": "213222", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull merged.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-07T14:30:26.000+0000", "updated": "2012-08-07T14:30:26.000+0000" }, { "id": "214340", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with:\r\nTitanium Studio, build: 2.1.1.201207271312\r\nTitanium SDK: 2.2.0.v20120813184911\r\n\r\nDevices:\r\niPhone 4s 5.0.1\r\niPad1 5.1.1\r\nSimulator 5.1\r\n\r\nMac osx 10.8 Mountain Lion", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T10:25:46.000+0000", "updated": "2012-08-14T10:25:46.000+0000" }, { "id": "278597", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4876", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T05:35:10.000+0000", "updated": "2013-11-07T05:35:10.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }