{ "id": "89093", "key": "TIMOB-8456", "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": null, "resolutiondate": null, "created": "2012-03-29T03:35:05.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:01.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h3. The problem\r\n\r\n\r\nScrollView component does not function well and its behavior defers from basic View component.\r\n\r\nIf View is added to ScrollView and it is positioned to the bottom (by using combination of ScrollView's absolute layout and View's bottom property), View is not shown on the screen.\r\nIf TextField is present on the screen, and it is pressed and focused, ScrollView re-sizes itself and bottom View shows on the screen.\r\n\r\n\r\nh3. Test case\r\n\r\n\r\n{code:javascript}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n title: 'Tab 1',\r\n window: Ti.UI.createWindow()\r\n});\r\n\r\nvar tab2 = Ti.UI.createTab({\r\n title: 'Tab 2',\r\n window: Ti.UI.createWindow()\r\n});\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n width: '100%',\r\n height: '100%',\r\n backgroundColor: '#fc9',\r\n contentWidth: 'auto',\r\n contentHeight: 'auto'\r\n});\r\n\r\nvar tf = Ti.UI.createTextField({\r\n top: 20,\r\n //focusable: false,\r\n width: 200\r\n});\r\n\r\nvar bottomView = Ti.UI.createView({\r\n backgroundColor: '#f00',\r\n height: '10%',\r\n bottom: 0\r\n});\r\n\r\nscrollView.add(tf);\r\nscrollView.add(bottomView);\r\n\r\ntab1.window.add(scrollView);\r\n\r\ntabGroup.open();\r\n{code}\r\n\r\n\r\nh3. Steps to reproduce the issue\r\n\r\n\r\nRun the code provided above. You should see that bottom red View is not shown on the screen.\r\n\r\nNow, touch text field so it gains focus and you should see that View is now present on the screen, even when keyboard is lowered down. Also notice that View has different size when keyboard is present.\r\n\r\n\r\nh3. Expected behavior\r\n\r\n\r\nRed View should be seen on the screen from beginning and focusing on TextField should not have affect on View's visibility or size.\r\n\r\nIf ScrollView is replaced with basic View, this issue is not present (to see that, replace \"createScrollView\" with \"createView\" and set TextField's focusable property to false because first text field in a View automatically gets focused).", "attachment": [], "flagged": false, "summary": "Android: ScollView doesn't show added component", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "* Titanium SDK version: 2.0.0 (03/28/12 18:32 7c5487f)\r\n* v8\r\n* Android 3.1\r\n* Thinkpad Tablet\r\n* Windows XP", "comment": { "comments": [ { "id": "195544", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2 on a Samsung Galaxy S2 (2.3.6), issue still exists.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-21T16:25:18.000+0000", "updated": "2012-05-21T16:25:18.000+0000" }, { "id": "239639", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue can be reproduced with release 3.0.2 and latest master version 3.1.0 .\r\n\r\n\r\nTested on:\r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK version: 3.1.0 (25/02/2013)\r\nTitanium SDK version: 3.0.2 (25/02/2013)\r\nDevice: Samsung galaxy s duos Android version: 4.0.4\r\n\r\nThe problem reproduced but i see that bottom red view is shown on the screen.When the TextField focused, it affects view's visibility and its size becomes reduced.\r\n\r\nIf you set \"focusable:true\" then problem get solved.But in the case of \"Button\" and \"Label\" it works perfectly without \"focusable\" property ,So i think most probably its a bug. \r\n ", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-25T13:02:19.000+0000", "updated": "2013-03-02T11:55:57.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }