{ "id": "87149", "key": "TIMOB-7847", "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": "12097", "description": "", "name": "Sprint 2012-05", "archived": true, "released": true, "releaseDate": "2012-03-11" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-05T16:45:23.000+0000", "created": "2012-02-29T01:15:18.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_scrollableview", "parity", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "15850", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "64173", "key": "TIMOB-3541", "fields": { "summary": "iOS: Implement Composite Layout Behavior Spec", "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": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-02-24T19:48:39.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": "Scrollable View height property set to 'auto' returns value 0 and is not visible.\r\nh4. Repro Steps\r\n1. Run the below code.\r\n2. Scrollable view height is 'auto' and you can see the scrollable view is not visible.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n background: 'green',\r\n})\r\nwin.open();\r\n\r\n\r\nvar vImageCase = Ti.UI.createView({\r\n height: 'auto',\r\n //height: 150,\r\n layout: 'vertical',\r\n top: 0,\r\n});\r\n \r\nvar ivPhoto2 = Ti.UI.createImageView({\r\n image: 'http://v2.suedostschweiz.ch/var/upload/news/image/127563_640.jpg',\r\n height: 230,\r\n top: 0,\r\n});\r\nvImageCase.add(ivPhoto2);\r\n \r\nvar vImageLegend = Ti.UI.createView({\r\n height: 'auto',\r\n layout: 'vertical',\r\n backgroundColor: '#E6E6E6',\r\n});\r\nvImageCase.add(vImageLegend);\r\n\r\nvar lLegend = Ti.UI.createLabel({\r\n height: 'auto',\r\n text: 'image[0].image_legend',\r\n});\r\nvImageLegend.add(lLegend);\r\n\r\n// If more images than 1, create scrollable view\r\nvar ScrollableView = Ti.UI.createScrollableView({\r\n views: [vImageCase],\r\n showPagingControl: true,\r\n pagingControlHeight: 30,\r\n pagingControlColor: '#899DA2',\r\n currentPage: 0,\r\n top: 50,\r\n left: 0,\r\n height: 'auto',\r\n // height: 250,\r\n});\r\nwin.add(ScrollableView);\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Scrollable View height property set to 'auto' returns value 0 and is not visible", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS5\r\nTi SDK 2.0.x CI build, 1.8.0.1\r\niPhone 4", "comment": { "comments": [ { "id": "187542", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just tested this in master and looks like it has been fixed by the composite layout behavior spec. The height no longer returns 0, and appears in iOS.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-20T15:34:14.000+0000", "updated": "2012-03-20T15:34:14.000+0000" }, { "id": "187706", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.0.0.201203202130\r\nTi Mob SDK 2.0.0.v20120321071752 hash r4c936bac\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.0.1\r\n\r\nScrollable view is visibile", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-21T09:31:00.000+0000", "updated": "2012-03-21T09:31:00.000+0000" }, { "id": "190105", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add/remove label", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-05T16:45:03.000+0000", "updated": "2012-04-05T16:45:03.000+0000" }, { "id": "278873", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil test case added.\nhttps://github.com/appcelerator/titanium_mobile/pull/4943", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-10T16:36:53.000+0000", "updated": "2013-11-10T16:36:53.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }