{ "id": "88955", "key": "TIMOB-8362", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-10T02:30:04.000+0000", "created": "2012-03-27T12:08:24.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "module_scrollview", "qe-testadded" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "56975", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172567", "key": "TIMOB-26525", "fields": { "summary": "Windows: ScrollView does not expand with Ti.UI.SIZE", "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 } } } }, { "id": "57032", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172636", "key": "TIMOB-26577", "fields": { "summary": "Windows: ScrollView sizing incorrectly in a vertical layout", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "47180", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "146802", "key": "TIMOB-18819", "fields": { "summary": "Windows: ScrollView sizing incorrectly", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-11-19T08:48:30.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2.Problem\r\nSetting Ti.UI.createScrollView.height to Ti.UI.SIZE causes the scrollView to take up the entire screen.\r\nIf navBarHidden:true is set in app.js, a scrollView whose contents are minor will now scroll. This did not occur in Android 2.2.\r\n\r\nh2.Steps to Reproduce\r\n# Make a project with the below app.js.\r\n# Run in Android 4.0 emulator\r\n\r\nYou will see that most of the screen (excluding the custom navbar) is red. If you click and drag, you will see it scroll even though the components are very minor.\r\n\r\nOne other point of interest, I added a label at the bottom of the window, but it is not visible since the scrollview wants to take up the entire parent. \r\n\r\n{code:title=Bar.java|borderStyle=solid}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#7B6700',\r\n exitOnClose:true,\r\n layout:'vertical',\r\n navBarHidden:true\r\n});\r\n\r\nvar NavBarView = Ti.UI.createView({height: '25dp',\r\n top:0,\r\n backgroundColor: 'green',\r\n width:'100%'});\r\n \r\nvar View1 = Ti.UI.createScrollView({left:'3dp',\r\n right:'3dp',\r\n height: Ti.UI.SIZE,\r\n showVerticalScrollIndicator:true,\r\n scrollType:'vertical',\r\n layout:'vertical',\r\n backgroundColor: 'red',\r\n showHorizontalScrollIndicator:false,\r\n touchEnabled: true\r\n });\r\n\r\nvar button = Ti.UI.createButton({title: 'Click',\r\n width: '100dp',\r\n height: '50dp'\r\n });\r\n \r\nbutton.addEventListener('click', ButtonClick);\r\n\r\nfunction ButtonClick(e)\r\n{\r\n Ti.API.info('View1 height: ' + View1.size.height);\r\n}\r\n\r\nLabel1 = Ti.UI.createLabel({text:'Label 1'});\r\n\r\nView1.add(button);\r\nwin.add(NavBarView);\r\nwin.add(View1);\r\nwin.add(Label1);\r\nwin.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Ti.UI.createScrollView sizing incorrectly in a vertical layout", "creator": { "name": "jlbarnhart", "key": "jlbarnhart", "displayName": "Jon Barnhart", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 2.0.0.v20120325213306\r\nAndroid 4.0 Emulator/Device\r\nWindows 7\r\n", "comment": { "comments": [ { "id": "188965", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "HD ticket: http://support.appcelerator.com/tickets/APP-225923/", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-28T04:50:10.000+0000", "updated": "2012-03-28T04:50:10.000+0000" }, { "id": "200387", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with \r\n\r\nTitanium Studio, build: 2.1.0.201206251749\r\nTitanium SDK: 2.1.0.v20120626104306\r\nAndroid 4.0 emulator\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-26T13:56:00.000+0000", "updated": "2012-06-26T13:56:00.000+0000" }, { "id": "201594", "author": { "name": "jlbarnhart", "key": "jlbarnhart", "displayName": "Jon Barnhart", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with SDK 2.1.0.GA Thanks", "updateAuthor": { "name": "jlbarnhart", "key": "jlbarnhart", "displayName": "Jon Barnhart", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-05T11:11:31.000+0000", "updated": "2012-07-05T11:11:31.000+0000" }, { "id": "202306", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-07-10T02:29:27.000+0000", "updated": "2012-07-10T02:29:27.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }