{ "id": "93719", "key": "TIMOB-9736", "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": "13417", "description": "Sprint 2012-13 API", "name": "Sprint 2012-13 API", "archived": true, "released": true, "releaseDate": "2012-07-01" }, { "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-11-01T20:12:21.000+0000", "created": "2012-06-22T16:19:29.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "ios6", "module_textarea", "qe-ios214", "qe-testadded" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "21138", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "101615", "key": "TIMOB-11030", "fields": { "summary": "iOS: Applying background color constants or \"stripped\" color to modal window results in the modal window being black", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-10-12T11:44:58.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": "h3. Description \r\nWhen text area inside scroll view, inside modal window, is focused, the scroll view jumps up out of view then settles back down to the correct position above the keyboard. If text is entered the text area does not settle back down above the keyboard. It stays up and out of view. This only happens on device and works fine in simulator. \r\n\r\nh3. Test Case \r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#ccc'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\ttitle: 'Click me!'\r\n});\r\n\r\nwin.add(btn);\r\n \r\nbtn.addEventListener('click', function(e) {\r\n\r\n\tvar w = Ti.UI.createWindow({\r\n\t\tbackgroundColor : 'stripped'\r\n\t});\r\n\r\n\tvar scrollView = Ti.UI.createScrollView({\r\n\t\tcontentHeight: 1000,\r\n\t\twidth: Ti.UI.FILL,\r\n\t\theight: Ti.UI.FILL\r\n\t});\r\n\r\n\tvar label = Ti.UI.createLabel({\r\n\t\ttext : 'Scroll Down',\r\n\t\theight : Ti.UI.SIZE,\r\n\t\twidth : Ti.UI.FILL,\r\n\t\ttextAlign : 'center',\r\n\t\ttop: 10\r\n\t});\r\n\r\n\tvar textArea = Ti.UI.createTextArea({\r\n\t\tleft:10,\r\n\t\tright:10,\r\n\t\tbottom: 150,\r\n\t\theight: 100,\r\n\t});\r\n\tvar btn = Titanium.UI.createButton({\r\n\t\ttitle : 'Close',\r\n\t\twidth: Ti.UI.SIZE,\r\n\t\theight: Ti.UI.SIZE,\r\n\t\tbottom: 50\r\n\t});\r\n\r\n\r\n\tscrollView.add(label);\r\n\tscrollView.add(textArea);\r\n\tscrollView.add(btn);\r\n\r\n\ttextArea.addEventListener('return', function() {\r\n\t\ttextArea.blur();\r\n\t});\r\n\t\r\n\tw.add(scrollView);\r\n\tw.orientationModes = [\r\n\tTitanium.UI.PORTRAIT,\r\n\tTitanium.UI.LANDSCAPE_LEFT,\r\n\tTitanium.UI.LANDSCAPE_RIGHT\r\n];\r\n\tw.open({modal : true});\r\n\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\nh3. To Reproduce\r\n\r\n1. Copy and paste this code into your app.js\r\n2. Run the app on the device\r\n3. Click on the button and it will open a modal window\r\n4. Scroll down and tap in the text area\r\n5. Type in the text area", "attachment": [], "flagged": false, "summary": "iOS: Text Area in Scroll View in Modal Window Goes offscreen on focus", "creator": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iPhone 4 Device\r\niOS 5.1\r\nTi SDK 2.1.0.v20120622112257.8a29511\r\n", "comment": { "comments": [ { "id": "213521", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-09T06:24:19.000+0000", "updated": "2012-08-09T06:24:19.000+0000" }, { "id": "215789", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Occurs on:\r\nTitanium Studio: 2.1.2.201208201549\r\nTitanium SDK: 2.1.2.v20120821160113\r\nDevice: iPad3 (v5.1)\r\nFixed with SDK: 2.2.0.v20120808154112", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T06:10:52.000+0000", "updated": "2012-08-23T06:10:52.000+0000" }, { "id": "225773", "author": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I tried with iOS 6 in iPhone 4s and Ti SDK 2.1.3.v20120927181611.\r\nI have same problem.", "updateAuthor": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-11-01T06:54:24.000+0000", "updated": "2012-11-01T06:54:24.000+0000" }, { "id": "225795", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopened due to existence on *iOS 6* iPhone5.\nTested with:\nTitanium Studio, build: 3.0.0.201210291448\nTitanium SDK, build: 2.1.4.v20121030173408\nDevices:\niPhone5 ios 6.0\niPad2 ios 4.3.5", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-01T17:14:26.000+0000", "updated": "2012-11-01T17:14:26.000+0000" }, { "id": "225845", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed in master and 3_0_X. Never backported to 2_1_X so test with 3.0.0 and later builds", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-01T20:12:21.000+0000", "updated": "2012-11-01T20:12:21.000+0000" }, { "id": "229878", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 3.0.0.v20121130200208 n iPhone 4 5.1.1", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T18:43:59.000+0000", "updated": "2012-12-04T18:43:59.000+0000" }, { "id": "366500", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Hello, I have this issue on iP6/iP5/iP4S - iOS 8.4 simulator and also tested on iP6 iOS9 device and the issue is there. I have 3 textfields on screen and when I enter some text in that and press return, all of my UI is moved to left off screen and I can't move that in right place(on simulators I can move it, on iP6 device I can't). If there is not any value in the textdields, UI moves to the right posietion itself(tested on device).\r\nAppcelerator studio 4.3.1.201509222258, Ti SDK 4.1.1 GA\r\nPlease have a look at this.\r\nThank you", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2015-10-12T11:44:58.000+0000", "updated": "2015-10-12T11:44:58.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }