{ "id": "88032", "key": "TIMOB-8041", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-21T22:11:53.000+0000", "created": "2012-03-15T13:32:30.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-mw020912", "qe-port" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-08-08T16:27:57.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Steps to reproduce:\r\n\r\n1. Create a default mobile web app and change the app.js code to the following:\r\n{code}\r\n\r\nvar _window = Titanium.UI.createWindow({\r\n\t\t\ttitle : 'test',\r\n\t\t\tbackgroundColor : 'white'\r\n\t\t});\r\n\r\nvar tf = Ti.UI.createTextField({\r\n\t\t\tvalue : 'SAMPLE',\r\n\t\t\tmaxLength : 20,\r\n\t\t\ttop : 20,\r\n\t\t\tleft : 20,\r\n\t\t\twidth : 300,\r\n\t\t\theight : 60,\r\n\t\t\tborderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n\t\t});\r\n\t\t_window.add(tf);\r\n\r\n\t\tvar b = Ti.UI.createButton({\r\n\t\t\ttitle : 'Increase maxLength',\r\n\t\t\twidth : 200,\r\n\t\t\theight : 40,\r\n\t\t\tbottom : 60\r\n\t\t});\r\n\t\tb.addEventListener('click', function(e) {\r\n\t\t\ttf.maxLength += 5;\r\n\t\t\tTi.API.info('maxLength: ' + tf.maxLength);\r\n\t\t});\r\n\t\t_window.add(b);\r\n\r\n\t\tvar b2 = Ti.UI.createButton({\r\n\t\t\ttitle : 'Unlimited length',\r\n\t\t\twidth : 200,\r\n\t\t\theight : 40,\r\n\t\t\tbottom : 120\r\n\t\t});\r\n\t\tb2.addEventListener('click', function(e) {\r\n\t\t\ttf.maxLength = -1;\r\n\t\t});\r\n\t\t_window.add(b2);\r\n_window.open();\r\n{code}\r\n\r\n2. Run app\r\n3. Type 15 more characters into the text field\r\n\r\nActual result:\r\nText field displays 21 characters\r\n\r\nExpected result:\r\nText field stops at the 20th character", "attachment": [], "flagged": false, "summary": "MobileWeb : TextField - The maxLength property of textField is not being enforced", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Ti Studio build 2.0.0.201203132050\r\nTi Mob SDK 2.0.0.v20120315091738 hash rec1c5584\r\nOSX Lion 10.7.3\r\niPad 1 OS 4.3.5, Galaxy Tab 10.1 OS 3.0", "comment": { "comments": [ { "id": "187883", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull request: https://github.com/appcelerator/titanium_mobile/pull/1788", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-03-21T17:34:01.000+0000", "updated": "2012-03-21T17:34:01.000+0000" }, { "id": "187898", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Closing for Bryan.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-03-21T22:11:53.000+0000", "updated": "2012-03-21T22:11:53.000+0000" }, { "id": "213398", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested On:\r\nTitanium studio : 2.1.1.201207271312\r\nSDK version : 2.2.0.v20120807144112\r\nAndroid 4.0.4 - default ,chrome 18.0\r\nIphone 4.3.5 - safari mobile\r\nMountain lion(10.8) - chrome 21.0,safari 5.1.4,firefox 14.0.1", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-08T14:33:35.000+0000", "updated": "2012-08-08T14:33:35.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }