{ "id": "119450", "key": "TIMOB-15444", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-06-26T21:54:59.000+0000", "created": "2013-09-04T16:06:03.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:37.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": "h4. Problem Description\r\nIf you have a TextField inside a scrollable view, when you try type in it on mobile web it just doesn't get focus, instead the scrollable view tries to scroll.\r\n\r\nh4. Steps to reproduce \r\n1. Create a new mobile web project\r\n2. Paste the code sample to app.js\r\n3. Run in browser \r\n\r\nh4. Test case \r\n{code}\r\n/*\r\n * Single Window Application Template:\r\n * A basic starting point for your application. Mostly a blank canvas.\r\n * \r\n * In app.js, we generally take care of a few things:\r\n * - Bootstrap the application with any data we need\r\n * - Check for dependencies like device type, platform version or network connection\r\n * - Require and open our top-level UI component\r\n * \r\n */\r\n \r\n//bootstrap and check dependencies\r\nif (Ti.version < 1.8 ) {\r\n alert('Sorry - this application template requires Titanium Mobile SDK 1.8 or later'); \r\n}\r\n \r\n// This is a single context application with multiple windows in a stack\r\n(function() {\r\n \r\n var window = Ti.UI.createWindow({\r\n width: Ti.UI.Fill,\r\n height: Ti.UI.Fill,\r\n backgroundColor: 'blue'\r\n });\r\n \r\n var scrollableView = Ti.UI.createScrollableView({\r\n width: Ti.UI.Fill,\r\n height: Ti.UI.Fill,\r\n backgroundColor: 'yellow'\r\n });\r\n \r\n var view1 = Ti.UI.createView({\r\n backgroundColor: 'pink'\r\n });\r\n \r\n var textField = Ti.UI.createTextField({\r\n hintText: \"Cant Focus On Me\",\r\n backgroundColor: 'white',\r\n width: 300,\r\n height: 90,\r\n value: \"cant change me!\"\r\n });\r\n \r\n view1.add(textField);\r\n \r\n var view2 = Ti.UI.createView({\r\n backgroundColor: 'lime'\r\n });\r\n \r\n scrollableView.addView(view1);\r\n scrollableView.addView(view2);\r\n window.add(scrollableView);\r\n \r\n \r\n \r\n window.open();\r\n})();\r\n{code}\r\n\r\nh4. Extra comments \r\nThe bug is in the kitchen sink demo also if you add a TextField inside the ScrollableView demo, the above code should let you replicate the issue.\r\n\r\n", "attachment": [ { "id": "42341", "filename": "scrollableViewBug-Classic.zip", "author": { "name": "owenmelbz", "key": "owenmelbz", "displayName": "owen melbourne", "active": true, "timeZone": "Europe/London" }, "created": "2013-09-10T08:21:25.000+0000", "size": 2281917, "mimeType": "application/zip" } ], "flagged": false, "summary": "MobileWeb: Can't Type in TextFields inside ScrollableView", "creator": { "name": "owenmelbz", "key": "owenmelbz", "displayName": "owen melbourne", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "owenmelbz", "key": "owenmelbz", "displayName": "owen melbourne", "active": true, "timeZone": "Europe/London" }, "environment": "OSX, Chrome, Firefox, Mobile Safari", "comment": { "comments": [ { "id": "270458", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\ncan you provide a testcase with Titanium Classic? \n\nWhich version of the Mobile SDK are you using?\n\nBest,\n\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-09-09T22:18:29.000+0000", "updated": "2013-09-09T22:18:29.000+0000" }, { "id": "270554", "author": { "name": "owenmelbz", "key": "owenmelbz", "displayName": "owen melbourne", "active": true, "timeZone": "Europe/London" }, "body": "I've attached a demo app that contains the bug for you to see.\r\n\r\nWe've tried it on Titanium SDK 3.1.2.GA and 3.1.1 and the bug happens in both.\r\n\r\nIf the MobileSDK version is different, where can I find this?\r\n\r\nI've also pasted the content of app.js\r\n\r\n{code:javascript}\r\n/*\r\n * Single Window Application Template:\r\n * A basic starting point for your application. Mostly a blank canvas.\r\n * \r\n * In app.js, we generally take care of a few things:\r\n * - Bootstrap the application with any data we need\r\n * - Check for dependencies like device type, platform version or network connection\r\n * - Require and open our top-level UI component\r\n * \r\n */\r\n\r\n//bootstrap and check dependencies\r\nif (Ti.version < 1.8 ) {\r\n\talert('Sorry - this application template requires Titanium Mobile SDK 1.8 or later');\t \t\r\n}\r\n\r\n// This is a single context application with multiple windows in a stack\r\n(function() {\r\n\t\r\n\tvar window = Ti.UI.createWindow({\r\n\t\twidth: Ti.UI.Fill,\r\n\t\theight: Ti.UI.Fill,\r\n\t\tbackgroundColor: 'blue'\r\n\t});\r\n\t\r\n\tvar scrollableView = Ti.UI.createScrollableView({\r\n\t\twidth: Ti.UI.Fill,\r\n\t\theight: Ti.UI.Fill,\r\n\t\tbackgroundColor: 'yellow'\r\n\t});\r\n\t\r\n\tvar view1 = Ti.UI.createView({\r\n\t\tbackgroundColor: 'pink'\r\n\t});\r\n\t\r\n\tvar textField = Ti.UI.createTextField({\r\n\t\thintText: \"Cant Focus On Me\",\r\n\t\tbackgroundColor: 'white',\r\n\t\twidth: 300,\r\n\t\theight: 90,\r\n\t\tvalue: \"cant change me!\"\r\n\t});\r\n\t\r\n\tview1.add(textField);\r\n\t\r\n\tvar view2 = Ti.UI.createView({\r\n\t\tbackgroundColor: 'lime'\r\n\t});\r\n\t\r\n\tscrollableView.addView(view1);\r\n\tscrollableView.addView(view2);\r\n\twindow.add(scrollableView);\r\n\t\r\n\t\r\n\t\r\n\twindow.open();\r\n})();\r\n\r\n{code}", "updateAuthor": { "name": "owenmelbz", "key": "owenmelbz", "displayName": "owen melbourne", "active": true, "timeZone": "Europe/London" }, "created": "2013-09-10T08:21:25.000+0000", "updated": "2013-09-10T08:25:14.000+0000" }, { "id": "271895", "author": { "name": "owenmelbz", "key": "owenmelbz", "displayName": "owen melbourne", "active": true, "timeZone": "Europe/London" }, "body": "Is there any movement on this issue? As we've got a client relying on this, even if you can provide us with a fix that we can apply locally.", "updateAuthor": { "name": "owenmelbz", "key": "owenmelbz", "displayName": "owen melbourne", "active": true, "timeZone": "Europe/London" }, "created": "2013-09-19T09:23:24.000+0000", "updated": "2013-09-19T09:23:24.000+0000" }, { "id": "274552", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello Owen, \nbug confirmed, passed to the Platform team for review. \n\nBest,\n\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-10-10T03:24:52.000+0000", "updated": "2013-10-10T03:24:52.000+0000" }, { "id": "422845", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T21:54:59.000+0000", "updated": "2017-06-26T21:54:59.000+0000" }, { "id": "436448", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:37.000+0000", "updated": "2018-04-04T23:20:37.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }