{ "id": "85766", "key": "TIMOB-7490", "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" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-14T10:45:55.000+0000", "created": "2012-01-31T15:48:17.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_window", "parity", "qe-testadded" ], "versions": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [ { "id": "15784", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "85641", "key": "TIMOB-7451", "fields": { "summary": "iOS: Left property of the view is not being set in the correct position in the device", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-15T15:28:01.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": "*Note this behavior was found when verifying a similar bug on Android TIMOB-5808*\r\n\r\nSteps to reproduce:\r\n1. Create a new titanium mobile project\r\n2. Drop the code below into your app.js\r\n{code}\r\nvar uiWindow = Ti.UI.createWindow({\r\n navBarHidden: true\r\n});\r\n \r\nvar uiViewBackground = Ti.UI.createView({\r\n layout: 'vertical',\r\n backgroundColor: '#FFFFFF'\r\n});\r\n \r\nvar uiViewArticle = Ti.UI.createView({\r\n layout: 'vertical',\r\n backgroundColor: '#aabbcc'\r\n});\r\n \r\n\r\nvar uiLabelRed = Ti.UI.createLabel({\r\n text: 'I´m the RED bar (10dp top)!',\r\n backgroundColor: '#AA0000',\r\n width: '100%',\r\n height: 'auto',\r\n top: '10dp'\r\n});\r\n \r\n\r\nvar uiLabelGreen = Ti.UI.createLabel({\r\n text: 'I´m the GREEN bar (10dp top)!',\r\n backgroundColor: '#00AA00',\r\n width: '100%',\r\n height: 'auto',\r\n top: '10dp'\r\n});\r\n \r\n\r\nvar uiLabelBlue = Ti.UI.createLabel({\r\n text: 'I´m the BLUE bar (10dp top)!',\r\n backgroundColor: '#0000AA',\r\n width: '100%',\r\n top: '10dp'\r\n});\r\n \r\n// add all 3 labels with 10dp (7 pixel) top\r\nuiViewArticle.add(uiLabelRed);\r\nuiViewArticle.add(uiLabelGreen);\r\nuiViewArticle.add(uiLabelBlue);\r\n \r\nuiViewBackground.add(uiViewArticle);\r\n \r\nuiWindow.add(uiViewBackground);\r\n \r\nuiWindow.open();\r\n{code}\r\n3. Run app\r\n\r\nActual result:\r\nThe third label \"uiLabelBlue\" is not shown in the uiViewArticle view\r\n*Note see attached screen shot*\r\n\r\nExpected result:\r\nAll three labels are added to the view and displayed correctly", "attachment": [ { "id": "25430", "filename": "screencap.PNG", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-31T15:48:17.000+0000", "size": 40625, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS : View/Window - When using the vertical layout property on views that are added to windows, certain content of the view is not shown", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Ti Studio build 1.0.8.201201262211\r\nTi Mob SDK 1.8.1\r\nOSX Lion\r\niPhone 4S, iPhone Sim 5.0", "comment": { "comments": [ { "id": "186709", "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.v20120315140247\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-15T15:27:17.000+0000", "updated": "2012-03-15T15:27:17.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }