{ "id": "137544", "key": "TIMOB-19539", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2019-12-06T22:42:20.000+0000", "created": "2014-10-01T16:11:19.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "TCSupportTriage", "scrollview", "textarea" ], "versions": [ { "id": "16919", "description": "Critical updates", "name": "Release 4.1.1", "archived": true, "released": true, "releaseDate": "2015-07-15" }, { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-12-06T22:42:20.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": "ScrollView scrolls to the top when typing some text to a TextArea. To be more specific when some key is pressed TextArea will show the last added letter and then it will scroll to the top. See end of the attached video when I am trying to type a word... It keeps going up and down. Also TextArea shouldn't be under a keyboard.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"black\"\r\n});\r\n \r\nvar scrollView = Ti.UI.createScrollView({\r\n width: Ti.UI.FILL, height: Ti.UI.FILL,\r\n contentWidth: Ti.UI.SIZE, contentHeight: Ti.UI.SIZE\r\n});\r\n\r\nvar textArea = Ti.UI.createTextArea({\r\n width: Ti.UI.FILL, height: Ti.UI.SIZE,\r\n suppressReturn : false,\r\n scrollable: false,\r\n borderWidth: 1,\r\n borderColor: \"red\",kjh\r\n top: 0\r\n});\r\n\r\nscrollView.add(textArea);\r\n \r\nwin.add(scrollView);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "51756", "filename": "ScrollViewScrollsUp.mov", "author": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-01T16:11:19.000+0000", "size": 3951448, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "iOS: ScrollView scrolls to the top when typing text to TextArea", "creator": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 6.1.0.GA and 6.1.1.GA\r\nAppcelerator Command-Line Interface, version 6.2.2\r\niOS device: iPhone 5s(10.3.2)", "comment": { "comments": [ { "id": "423226", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello!\r\n\r\nI can reproduce this issue with the following sample code and environment. The textArea goes to the top when the text is long enough (when the text goes beyond the screen) you can see it if you keep typing for a bit.\r\n\r\nh6.TESTING ENVIRONMENT:\r\nTi SDK 6.1.0.GA and 6.1.1.GA\r\nAppcelerator Command-Line Interface, version 6.2.2\r\niOS device: iPhone 5s(10.3.2)\r\n\r\nh6.TEST CODE:\r\n{code}\r\nvar window = Ti.UI.createWindow({\r\n\r\nbackgroundColor : \"#ffffff\",\r\n\r\nstatusBarStyle : Ti.UI.iOS.StatusBar.LIGHT_CONTENT,\r\n\r\ntouchEnabled : true\r\n\r\n});\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n\r\nwidth : Ti.UI.FILL,\r\n\r\nheight : Ti.UI.FILL,\r\n\r\ncontentWidth : Ti.UI.SIZE,\r\n\r\ncontentHeight : Ti.UI.SIZE\r\n\r\n});\r\n\r\nvar overlayTaskScreenTextArea = Ti.UI.createTextArea({\r\n\r\nwidth : 200,\r\n\r\nheight : Ti.UI.SIZE,\r\n\r\nscrollable : false,\r\n\r\ntop : 200,\r\n\r\nleft : 58,\r\n\r\ncolor : \"#9fa8b0\",\r\n\r\nvalue : \"TITLE\",\r\n\r\ntextAlign : 'left',\r\n\r\nverticalAlign : Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP,\r\n\r\nreturnKeyType : Ti.UI.RETURNKEY_DONE,\r\n\r\nautocapitalization : Ti.UI.TEXT_AUTOCAPITALIZATION_ALL,\r\n\r\nautocorrect : false,\r\n\r\nscrollsToTop : false,\r\n\r\nfont : {\r\n\r\nfontFamily : \"CenturyGothic\",\r\n\r\nfontSize : \"13dp\"\r\n\r\n},\r\n\r\n});\r\n\r\nscrollView.add(overlayTaskScreenTextArea);\r\n\r\nwindow.add(scrollView);\r\n\r\nwindow.open();\r\n{code}\r\n\r\nh6.STEPS TO Reproduce:\r\nCreate a simple project.\r\nUpdate app.js with the test code\r\nRun on iOS device.\r\nIf you type long enough it begins to hide behind the keyboard and when you continue to type it goes up to the top after each letter.\r\n\r\nThanks", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-06-30T03:00:58.000+0000", "updated": "2017-06-30T03:04:29.000+0000" }, { "id": "453076", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproducible, with any of the code provided.. \r\n\r\nAxway Appcelerator Studio, build: 5.1.4.201909061933 \r\nmacOS : 10.15\r\nNode.js Version : 8.9.1\r\nnpm Version : 5.5.1\r\nAppcelerator CLI : 7.1.2\r\nTitanium CLI\r\nCLI Version : 5.2.1\r\nnode-appc Version : 0.2.49\r\nTitanium SDKs : 8.3.0.GA\r\niPhone 11 13.2.2", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-12-06T22:42:20.000+0000", "updated": "2019-12-06T22:42:20.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }