{
"id": "128879",
"key": "TIMOB-16844",
"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": "2014-06-10T21:48:40.000+0000",
"created": "2014-04-10T16:40:31.000+0000",
"priority": {
"name": "High",
"id": "2"
},
"labels": [
"ScrollView",
"SearchBar",
"iOS7"
],
"versions": [
{
"id": "15857",
"description": "Release 3.2.2",
"name": "Release 3.2.2",
"archived": false,
"released": true,
"releaseDate": "2014-03-09"
}
],
"issuelinks": [],
"assignee": {
"name": "ingo",
"key": "ingo",
"displayName": "Ingo Muschenetz",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2017-03-23T22:36:54.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": "Symptom:\r\nYou have a ScrollView with a SearchBar inside. When a SearchBar is the first text input that is focused, the keyboard will cover up the ScrollView, and not scroll any differently than if the keyboard was not displayed.\r\n\r\nExpected:\r\nThe ScrollView should resize itself to the available space on the screen, allowing for scrolling if necessary.\r\n\r\nWorkaround:\r\nNone that are acceptable. You can put whitespace at the end of your ScrollView content, but that's a poor user experience.\r\n\r\n{code:xml|title=index.xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\r\n\r\n{code}\r\n\r\n{code:javascript|title=index.js}\r\nvar doBlur = function() {\r\n\t$.myTextField.blur();\r\n\t$.mySearchBar.blur();\r\n};\r\n\r\n$.index.open();\r\n{code}\r\n\r\n",
"attachment": [
{
"id": "47233",
"filename": "open_state.png",
"author": {
"name": "iotashan",
"key": "iotashan",
"displayName": "Shannon Hicks",
"active": true,
"timeZone": "America/Chicago"
},
"created": "2014-04-10T16:40:31.000+0000",
"size": 26518,
"mimeType": "image/png"
},
{
"id": "47234",
"filename": "searchbar_focused_first.png",
"author": {
"name": "iotashan",
"key": "iotashan",
"displayName": "Shannon Hicks",
"active": true,
"timeZone": "America/Chicago"
},
"created": "2014-04-10T16:40:31.000+0000",
"size": 111964,
"mimeType": "image/png"
},
{
"id": "47235",
"filename": "textfield_focused_first.png",
"author": {
"name": "iotashan",
"key": "iotashan",
"displayName": "Shannon Hicks",
"active": true,
"timeZone": "America/Chicago"
},
"created": "2014-04-10T16:40:31.000+0000",
"size": 72418,
"mimeType": "image/png"
}
],
"flagged": false,
"summary": "iOS: SearchBar focused in ScrollView, scrolling does not work",
"creator": {
"name": "iotashan",
"key": "iotashan",
"displayName": "Shannon Hicks",
"active": true,
"timeZone": "America/Chicago"
},
"subtasks": [],
"reporter": {
"name": "iotashan",
"key": "iotashan",
"displayName": "Shannon Hicks",
"active": true,
"timeZone": "America/Chicago"
},
"environment": "Ti SDK 3.2.2.GA\r\nTi CLI 3.2.1\r\nAlloy 1.3.1\r\niOS SDK 7.0.3\r\niOS 7.0.3",
"comment": {
"comments": [
{
"id": "300861",
"author": {
"name": "ragrawal",
"key": "ragrawal",
"displayName": "Ritu Agrawal",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Moving this ticket to engineering as I can reproduce this issue with Titanium SDK 3.2.2 GA on iOS simulator.",
"updateAuthor": {
"name": "ragrawal",
"key": "ragrawal",
"displayName": "Ritu Agrawal",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2014-04-14T19:50:40.000+0000",
"updated": "2014-04-14T19:50:40.000+0000"
},
{
"id": "302919",
"author": {
"name": "srahim",
"key": "srahim",
"displayName": "Sabil Rahim",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "commonjs\r\n\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar doblur = function() {\r\n myTextField.blur();\r\n searchBar.blur();\r\n};\r\nvar win1 = Titanium.UI.createWindow({backgroundColor:'#fff'});\r\nvar scrollView = Ti.UI.createScrollView({\r\n\ttop:0,\r\n\tbottom :0,\r\n\tleft:0,\r\n\tright:0,\r\n\tlayout:\"vertical\"\r\n});\r\n\r\n\r\nvar justAddingSpace = Ti.UI.createLabel({\r\n\ttext:\"Click here to hide Keyboard\",\r\n\theight:400,\r\n\theight:\"400\", \r\n\twidth:\"200\", \r\n\tbottom:\"10\", \r\n\tcolor:\"#fff\", \r\n\tbackgroundColor:\"#C00\"\r\n});\r\n\r\njustAddingSpace.addEventListener(\"click\",doblur);\r\n\r\nvar myTextField = Ti.UI.createTextField({\r\n\twidth:250,\r\n\tborder:1,\r\n\tborderColor:\"#000\",\r\n});\r\n\r\nvar searchBar = Ti.UI.createSearchBar({ top: 10, bottom:10, height:50});\r\n\r\nvar btn = Ti.UI.createButton({title:\"Button At the End\", bottom:20});\r\nbtn.addEventListener(\"click\",doblur);\r\n\r\n\r\nscrollView.add(justAddingSpace);\r\nscrollView.add(myTextField);\r\nscrollView.add(searchBar);\r\nscrollView.add(btn);\r\n\r\nwin1.add(scrollView);\r\nwin1.open();\r\n{code}",
"updateAuthor": {
"name": "srahim",
"key": "srahim",
"displayName": "Sabil Rahim",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2014-04-29T18:16:44.000+0000",
"updated": "2014-04-29T18:16:44.000+0000"
},
{
"id": "305965",
"author": {
"name": "core13",
"key": "core13",
"displayName": "Malcolm Hollingsworth",
"active": true,
"timeZone": "Europe/London"
},
"body": "Any idea when this will be resolved?\r\n\r\nThis is the sort of issue that makes people think that Titanium apps are not quite proper apps. It falls into the category of the old label problem on a tableViewRow when it was selected a Titanium app was not able change the label colour and then back again - it looked cheap and an almost app - then the property highlightedColor was added - and that tiny change meant we no longer looked an almost app. ",
"updateAuthor": {
"name": "core13",
"key": "core13",
"displayName": "Malcolm Hollingsworth",
"active": true,
"timeZone": "Europe/London"
},
"created": "2014-05-21T20:14:18.000+0000",
"updated": "2014-05-21T20:14:18.000+0000"
},
{
"id": "308358",
"author": {
"name": "rtlechuga",
"key": "rtlechuga",
"displayName": "Radamantis Torres-Lechuga",
"active": false,
"timeZone": "Asia/Dubai"
},
"body": "Since this is not a common UI/UX experience, we are not going to fix this issue, the workaround is to create a component to replicate the behavior with a textfield.\r\n{code:title=index.js|borderStyle=solid}\r\nvar doBlur = function() {\r\n $.myTextField.blur();\r\n $.myTextFieldSearch.blur();\r\n};\r\n//You should code all the behavior for the textfield here in the controller\r\n$.index.open();\r\n{code}\r\n\r\n{code:title=index.xml|borderStyle=solid}\r\n\r\n \r\n \r\n \r\n \r\n\r\n{code}",
"updateAuthor": {
"name": "rtlechuga",
"key": "rtlechuga",
"displayName": "Radamantis Torres-Lechuga",
"active": false,
"timeZone": "Asia/Dubai"
},
"created": "2014-06-10T21:48:40.000+0000",
"updated": "2014-06-10T21:48:40.000+0000"
},
{
"id": "415469",
"author": {
"name": "lmorris",
"key": "lmorris",
"displayName": "Lee Morris",
"active": false,
"timeZone": "America/Los_Angeles"
},
"body": "Closing ticket as Won't Fix with reference to the above comments.",
"updateAuthor": {
"name": "lmorris",
"key": "lmorris",
"displayName": "Lee Morris",
"active": false,
"timeZone": "America/Los_Angeles"
},
"created": "2017-03-23T22:36:54.000+0000",
"updated": "2017-03-23T22:36:54.000+0000"
}
],
"maxResults": 6,
"total": 6,
"startAt": 0
}
}
}