{ "id": "85327", "key": "TIMOB-7344", "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": "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-03-15T13:25:44.000+0000", "created": "2012-01-23T16:45:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_view", "parity", "qe-ios012312", "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": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [ { "id": "14724", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "63870", "key": "TIMOB-3238", "fields": { "summary": "Android: UI - A problem with dimensions defined as percentage in nested views", "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": "15681", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "86150", "key": "TIMOB-7562", "fields": { "summary": "iOS: Titanium.UI.View: view with layout property set to horizontal or vertical does not display children", "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 } } } } ], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-15T13:25:44.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": "Steps to reproduce:\r\n1. Copy code below to app.js:\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n layout: 'vertical', \r\n fullscreen: true\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n layout: 'horizontal',\r\n height: 50,\r\n backgroundColor: '#ccf',\r\n width: '50%'\r\n});\r\nvar nested_view = Ti.UI.createView({\r\n height: 50,\r\n backgroundColor: '#cfc',\r\n width: '50%'\r\n});\r\n\r\nvar control = Ti.UI.createView({\r\n\tlayout:'horizontal',\r\n\theight:50,\r\n\tbackgroundColor: 'red',\r\n\twidth: 160 // 50% of portrait screen width\r\n});\r\nvar nested_control = Ti.UI.createView({\r\n\theight:50,\r\n\tbackgroundColor:'green',\r\n\twidth: 80 // 25% of portrait screen width\r\n});\r\n\r\nview.add(nested_view);\r\nwin.add(view);\r\n\r\ncontrol.add(nested_control);\r\nwin.add(control);\r\n\r\nwin.open();\r\n{code}\r\n2. Launch app to an iOS device\r\n\r\nActual: Nested view is not displayed i.e. only one color is displayed on the view. See attachment.\r\nExpected: Should see two colors on the view like Android's behavior. See attachment.", "attachment": [ { "id": "25281", "filename": "actual.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T16:45:10.000+0000", "size": 19600, "mimeType": "image/png" }, { "id": "25280", "filename": "expected.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T16:45:10.000+0000", "size": 8641, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Views - Nested view cannot be displayed when dimension property is defined using percentage", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK build: 1.8.1.v20120123130147\r\nTitanium Studio, build: 1.0.8.201201210622\r\nxcode: 4.2\r\nDevice: iPad 1 (5.0.1)", "comment": { "comments": [ { "id": "182061", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please note that the expected layout when position (left/top/right/bottom) is not specified is center.\r\nThus the expected.png image above is incorrect and a separate issue should be created for nested view positioning with absolute width/height.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-06T11:48:26.000+0000", "updated": "2012-02-06T11:48:26.000+0000" }, { "id": "182669", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixes must regress against the following in KS *at minimum*:\r\n\r\nKS->Base UI->Views->Auto Height\r\nKS->Base UI->Views->Min Height\r\nKS->Base UI->Vertical->Basic\r\nKS->Base UI->Vertical->Table View\r\nKS->Base UI->Table Views->Layout 4\r\nKS->Base UI->Table Views->Table Auto Height", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-09T15:40:57.000+0000", "updated": "2012-02-09T15:40:57.000+0000" }, { "id": "182767", "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 1.0.8.201201262211\r\nTi Mob SDK 1.9.0.v20120209183134\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.0.1, iPad 1 OS 5.0.1\r\n\r\nVerified sample code, and KS tests all pass\r\n\r\n", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-10T11:40:40.000+0000", "updated": "2012-02-10T11:40:40.000+0000" }, { "id": "184128", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Must reopen to update fix version. 1.8.2 will NOT have this fixed due to regressions, but MASTER still has it.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-23T17:18:59.000+0000", "updated": "2012-02-23T17:18:59.000+0000" }, { "id": "184129", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still fixed in master, leaving unfixed in 1.8.2.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-23T17:19:58.000+0000", "updated": "2012-02-23T17:19:58.000+0000" }, { "id": "184130", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reclosing to indicate fixed in master.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-23T17:20:19.000+0000", "updated": "2012-02-23T17:20:19.000+0000" }, { "id": "184365", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This bug occurs in:\r\n\r\nTitanium SDK version: 1.8.2.v20120223174636\r\nDevice Details: iPad1 5.0.1\r\nTitanium Studio version: 1.0.9.201202141208", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-27T11:44:25.000+0000", "updated": "2012-02-27T11:44:25.000+0000" }, { "id": "184369", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed only for 1.9.0 release.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-27T11:50:19.000+0000", "updated": "2012-02-27T11:50:19.000+0000" }, { "id": "186666", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix using sample code and KS tests on:\r\n\r\nSDK build: 2.0.0.v20120315123246\r\nTitanium Studio, build: 2.0.0.201203142055\r\nxcode: 4.2\r\nDevice: iphone 4s (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-15T13:21:33.000+0000", "updated": "2012-03-15T13:21:33.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }