{ "id": "79685", "key": "TIMOB-5808", "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": "12090", "description": "", "name": "Sprint 2011-50", "archived": true, "released": true, "releaseDate": "2011-12-19" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-31T15:51:19.000+0000", "created": "2011-08-26T11:48:55.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_window", "parity", "qe-testadded" ], "versions": [ { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-03T22:30:09.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": "I try to create an article with some paragraphs (see example sourcecode: uiLabelRed, uiLabelBlue and uiLabelGreen). I use vertical layout! Each paragraph should have 10dp space (by adding top:'10dp', see example and screenshot)\r\n\r\nOn the appended screenshot you see the strange result. I already tried to find a workaround (encapsulate the labels), but this also dont work. See forum. http://developer.appcelerator.com/question/124783/unwanted-ghost-padding-in-a-vertical-layout#answer-217498\r\n\r\n{code:javascript} \r\n\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// add intro red\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// add intro red\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// add intro red\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\n// after adding the tree labels, the background\r\n// view got 30dp (21 pixel) extra at the bottom! \r\nuiViewBackground.add(uiViewArticle);\r\n \r\nuiWindow.add(uiViewBackground);\r\n \r\nuiWindow.open();\r\n{code} ", "attachment": [ { "id": "22699", "filename": "titanium_bottom_bug.gif", "author": { "name": "greenphp", "key": "greenphp", "displayName": "Andreas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-26T11:48:55.000+0000", "size": 4823, "mimeType": "image/gif" } ], "flagged": false, "summary": "Android: Unexpected \"Ghost-Margin\" in a Vertical layout!", "creator": { "name": "greenphp", "key": "greenphp", "displayName": "Andreas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "greenphp", "key": "greenphp", "displayName": "Andreas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version:\r\n\r\n- Titanium SDK version: 1.7.3 (08/08/11 13:49 ea32d53...)\r\n- Also tested in 1.7.2 / 1.8.0 (08/08/11) with same result\r\n\r\nPlatform & version:\r\n\r\n- Tested with Android 2.3.3 and Android 2.1\r\n\r\nDevice Details:\r\n\r\n- Android emulator\r\n\r\nHost Operating System:\r\n\r\n- Windows Vista\r\n\r\nTitanium Studio version:\r\n\r\n- Titanium Studio, build: 1.0.4.201108101535", "comment": { "comments": [ { "id": "179192", "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: 1.9.0.v20120112153134\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.8.201201122152\r\nDevice: Droid 3 (2.3.4)\r\n\r\nNote: Bug was reproducible in 1.7.5 and 1.8.0.1", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-13T09:34:07.000+0000", "updated": "2012-01-13T11:31:27.000+0000" }, { "id": "179211", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Editing comment\r\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-13T11:31:16.000+0000", "updated": "2012-01-13T11:31:16.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }