{ "id": "87372", "key": "TIMOB-7885", "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-19T17:47:13.000+0000", "created": "2012-03-05T15:24:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_view", "parity" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-04-19T17:47:13.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": "Details: If a child view's width or height is larger than the parent view's width or height, the child view will not be clipped. On Android, the below code works as expected for both V8 and Rhino. See attachments.\r\n\r\nSteps to reproduce:\r\n1. Run the following code on iOS:\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow();\r\n\r\nwin.backgroundColor = 'white';\r\n\r\nvar view = Ti.UI.createView({\r\nbackgroundColor: 'yellow',\r\ntop: '100px',\r\nheight: '150px',\r\nwidth: '150px'\r\n});\r\n\r\n// uncomment this line and comment the other view2 to see width clipping bug \r\n// var view2 = Ti.UI.createView({ backgroundColor: 'blue', height: '75px', width: '180px', }); \r\n\r\n// height clipping bug\r\nvar view2 = Ti.UI.createView({ backgroundColor: 'blue', height: '180px', width: '75px', });\r\n\r\nvar label = Ti.UI.createLabel({ top: 20, left: 10, height: 'auto', width: 'auto', color: 'black' });\r\nlabel.text = 'The blue rectangle should stay within the yellow square:';\r\n\r\nview.add(view2);\r\nwin.add(view);\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n\r\nActual: Child view is not clipped appropriately on iOS. See attachments.\r\nExpected: Child view should be clipped appropriately on iOS.", "attachment": [ { "id": "26034", "filename": "androidHeight.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-05T15:24:00.000+0000", "size": 20261, "mimeType": "image/png" }, { "id": "26035", "filename": "androidWidth.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-05T15:24:00.000+0000", "size": 20431, "mimeType": "image/png" }, { "id": "26032", "filename": "iOSHeight.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-05T15:24:00.000+0000", "size": 37540, "mimeType": "image/png" }, { "id": "26033", "filename": "iOSWidth.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-05T15:24:00.000+0000", "size": 37573, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Views - The child view is not clipped when child's width or height is larger than parent's view", "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.2, 2.0.0.v20120305103153\r\nTitanium Studio, build: 1.0.9.201202141208\r\nxcode:4.2\r\nDevice: iphone 4s (5.0.1)", "comment": { "comments": [ { "id": "187449", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed with composite layout changes in 2.0 release", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-20T12:31:39.000+0000", "updated": "2012-03-20T12:31:39.000+0000" }, { "id": "187709", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120321071752\r\nTitanium Studio, build: 2.0.0.201203202130\r\nxcode: 4.2\r\nDevice: iphone 4s (5.0.1)\r\n\r\nNote to QE: When porting, notice there are two test cases here.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-21T09:36:58.000+0000", "updated": "2012-03-21T09:36:58.000+0000" }, { "id": "191916", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "open to Update label", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-19T14:28:05.000+0000", "updated": "2012-04-19T14:28:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }