{ "id": "115945", "key": "TIMOB-14241", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-03-27T15:19:42.000+0000", "created": "2013-06-14T10:00:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "maxlength", "parity" ], "versions": [], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2015-03-27T17:57:01.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\nTextArea.maxLength not working in android, works perfectly fine on iOS\r\n\r\n*Steps to Reproduce*\r\n1. run code provided on iOS (notice the maxLength is working, limits characters to 20)\r\n2. run code provided on android (unlimited characters can be entered)\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n title : \"Test\",\r\n backgroundColor : 'gray'\r\n});\r\n \r\nvar view = Ti.UI.createView({\r\n height : 200,\r\n top : 5,\r\n left : 5,\r\n right : 5,\r\n layout : 'vertical'\r\n});\r\nvar textFieldTwitter = Ti.UI.createTextArea({\r\n left : 0,\r\n right : 0,\r\n height : 200,\r\n value : \"Testing1\",\r\n maxLength : 20\r\n});\r\n \r\nvar tweetMax = 140;\r\nvar viewTexteRestant = Ti.UI.createLabel({\r\n text : 'Caractères restants : ' + (tweetMax - textFieldTwitter.value.length),\r\n height : Ti.UI.SIZE,\r\n width : Ti.UI.SIZE,\r\n top : 20,\r\n backgroundColor : \"red\"\r\n});\r\n \r\ntextFieldTwitter.addEventListener('change', function(e) {\r\n Ti.API.info(tweetMax - textFieldTwitter.value.length);\r\n viewTexteRestant.text = 'Caractères restants : ' + (tweetMax - textFieldTwitter.value.length);\r\n});\r\n \r\nview.add(textFieldTwitter);\r\nview.add(viewTexteRestant); \r\n\r\nwin.open();\r\nwin.add(view); \r\n{code}\r\n\r\nsee : http://developer.appcelerator.com/question/153431/maxlength-in-textarea-doesnt-work", "attachment": [], "flagged": false, "summary": "Android: TextArea.maxLength doesn't work", "creator": { "name": "djamel.zahal", "key": "djamel.zahal", "displayName": "Djamel ZAHAL", "active": true, "timeZone": "Africa/Lagos" }, "subtasks": [], "reporter": { "name": "djamel.zahal", "key": "djamel.zahal", "displayName": "Djamel ZAHAL", "active": true, "timeZone": "Africa/Lagos" }, "environment": "Ti sdk 3.1, 3.2.X\r\nandroid 4.1.2", "closedSprints": [ { "id": 362, "state": "closed", "name": "2015 Sprint 06 SDK", "startDate": "2015-03-14T13:56:53.868Z", "endDate": "2015-03-28T00:00:00.000Z", "completeDate": "2015-03-30T17:32:33.590Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "347535", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Took a look at this. 3.5.1.GA maxLength doesn't work.\r\n\r\n4_0_X (4.0.0.v20150325201813) and Master branch works.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-03-27T06:58:05.000+0000", "updated": "2015-03-27T06:58:05.000+0000" }, { "id": "347556", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Marking this resolved in 4.0", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-27T15:19:42.000+0000", "updated": "2015-03-27T15:19:42.000+0000" }, { "id": "347582", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue is not seen in 4.0. The max characters entered are limited to 20 when the above code is ran.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.0.0.201503261211\r\nTi SDK : 4.0.0.v20150327082616\r\nCLI : 4.0.0-alpha\r\nAlloy : 1.6.0-alpha\r\nMAC Yosemite : 10.10.2\r\nNexus 5 - Android 5.1\r\nSamsung Galaxy S4 - Android 4.4.2\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-27T17:56:16.000+0000", "updated": "2015-03-27T17:56:55.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }