{ "id": "90058", "key": "TIMOB-8731", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-10-06T20:37:15.000+0000", "created": "2012-04-13T17:37:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "qe-and040912" ], "versions": [ { "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": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-10-06T20:37:15.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": "In ScrollView ,view should contain 3 rows of Image (4 squares of different sizes apart from each other in each row).One ScrollView is missing and the squares views have no separation.\r\n\r\nSteps to reproduce:\r\n\r\n1: Install and run the app\r\n\r\nActual Result: missing a ScrollView in the View.No space between the square views\r\nExpected Result: should be able to see all the three ScrollViews in the view\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n layout:'vertical'\r\n});\r\n \r\nfunction AddViews(params){\r\n var w = params[0];\r\n var h = params[1];\r\n var l = params[2];\r\n var r = params[3];\r\n var b = params[4];\r\n \r\n var view = Ti.UI.createView({\r\n width:w,\r\n height:h,\r\n left:l,\r\n right:r,\r\n backgroundColor:b\r\n })\r\n \r\n return view;\r\n}\r\n \r\nvar sv1 = Ti.UI.createScrollView({\r\n height:150,\r\n top : 15,\r\n left: 0,\r\n contentWidth: 'auto',\r\n showVerticalScrollIndicator:false,\r\n showHorizontalScrollIndicator:false,\r\n disableBounce:false,\r\n scrollType: 'horizontal',\r\n layout:'horizontal',\r\n backgroundColor:\"green\"\r\n})\r\n \r\nsv1.add(AddViews([100,100,10,10,\"red\"]))\r\nsv1.add(AddViews([30,50,0,0,\"red\"]))\r\nsv1.add(AddViews([100,70,10,10,\"red\"]))\r\nsv1.add(AddViews([150,100,0,0,\"red\"]))\r\n \r\nvar sv2 = Ti.UI.createScrollView({\r\n height:Ti.UI.SIZE,\r\n top : 15,\r\n left: 0,\r\n contentWidth: 'auto',\r\n showVerticalScrollIndicator:false,\r\n showHorizontalScrollIndicator:false,\r\n disableBounce:false,\r\n scrollType: 'horizontal',\r\n layout:'horizontal',\r\n backgroundColor:\"green\"\r\n})\r\n \r\nsv2.add(AddViews([100,100,10,10,\"red\"]))\r\nsv2.add(AddViews([30,50,0,0,\"red\"]))\r\nsv2.add(AddViews([100,70,10,10,\"red\"]))\r\nsv2.add(AddViews([150,100,0,0,\"red\"]))\r\n \r\n \r\nvar sv3 = Ti.UI.createScrollView({\r\n height:Ti.UI.FILL,\r\n top : 15,\r\n left: 0,\r\n contentWidth: 'auto',\r\n showVerticalScrollIndicator:false,\r\n showHorizontalScrollIndicator:false,\r\n disableBounce:false,\r\n scrollType: 'horizontal',\r\n layout:'horizontal',\r\n backgroundColor:\"green\"\r\n})\r\n \r\nsv3.add(AddViews([100,100,10,10,\"red\"]))\r\nsv3.add(AddViews([30,50,0,0,\"red\"]))\r\nsv3.add(AddViews([100,70,10,10,\"red\"]))\r\nsv3.add(AddViews([150,100,0,0,\"red\"]))\r\n \r\nwin.add(sv1);\r\nwin.add(sv2);\r\nwin.add(sv3);\r\n \r\nwin.open();\r\n{code}\r\n\r\nnote:*Not a regression, the behavior exists as far back as 1.8.2 at least*", "attachment": [], "flagged": false, "summary": "Android: ScrollView is not properly formatted in the view", "creator": { "name": "sshylaja", "key": "sshylaja", "displayName": "Sitara Shylaja", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sshylaja", "key": "sshylaja", "displayName": "Sitara Shylaja", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Studio - 2.0.1.201204101854\r\nSDK - 2.0.1.v20120410103239\r\nNexus s 4.0.4", "comment": { "comments": [ { "id": "239530", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue can be reproduced in the latest master 3.1.0 and also in last release 3.0.2 .\nTest Environment: Sdk version: 3.1.0,3.0.2\nDevice : Android 4.0.4 ,Display Resolution:480x800\nIn the landscape mode only 2 scrollviews are displayed. But in the portrait mode we can see all the three scrollviews as expected. Even though height of the second scrollview was set as Ti.UI.SIZE it grabs more height.", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-23T12:38:52.000+0000", "updated": "2013-02-23T12:38:52.000+0000" }, { "id": "428790", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Could not reproduce when using Titanium 6.0.2.\r\nBehavior matches between Android and iOS for that version.\r\nAssumed to be fixed.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-06T20:37:02.000+0000", "updated": "2017-10-06T20:37:02.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }