{ "id": "103537", "key": "TIMOB-13330", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-07-05T21:22:05.000+0000", "created": "2012-10-17T13:48:26.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [ { "id": "27277", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "103538", "key": "TIMOB-13331", "fields": { "summary": "Android: Sometimes imageView doesn't occupy all of parent view when there is more than one imageView in the window", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-05T21:22:05.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": "If a JPEG imageView with opacity set to anything but 1 is put inside another view with borderRadius set, it can sometimes cause the transluscent imageView to display content below it that you should not see (layers).\r\n\r\nNote: This does not seem to affect PNG or GIF for some reason. \r\n\r\n*Workarounds:* Switch to PNG/GIF image formats, or set opacity of the image to 1, or remove borderRadius from the parent view.\r\n*Reproducibility:* 1 / 10 (though always on first run after load, perhaps cache?)\r\n*Annoyability:* 9 / 10 (Its exactly these kind of fiddly bugs that wastes so much of my time debugging/developing on Titanium.)\r\n\r\n*Test Code:*\r\n{code:javascript}\r\nvar win = Titanium.UI.createWindow({\r\n\ttitle : 'Tab 1',\r\n\tbackgroundColor : 'green'\r\n});\r\n\r\n//This top box/image will not display correctly and will show the green below\r\n//despite topbox having full opacity and background color set to black.\r\nvar topbox = Ti.UI.createView({\r\n\t/* left & right work too */\r\n\ttop : '1%',\r\n\theight : '32%',\r\n\twidth : '100%',\r\n\tbackgroundColor : 'black',\r\n\tborderRadius : 10\r\n});\r\n\r\nvar topimage = Ti.UI.createImageView({\r\n\timage : 'http://beaver6813.com/dev/jira/codestrong-2.jpg',\r\n\twidth : '100%',\r\n\theight : '100%',\r\n\ttop : 0,\r\n\tleft : 0,\r\n\tzIndex : 1,\r\n\topacity : 0.5\r\n});\r\n\r\n//Despite having exactly the same settings as the box above, this image will\r\n//display correctly because its not a jpeg.\r\nvar botbox = Ti.UI.createView({\r\n\t/* left & right work too */\r\n\tbottom : '1%',\r\n\theight : '32%',\r\n\twidth : '100%',\r\n\tbackgroundColor : 'black',\r\n\tborderRadius : 10\r\n});\r\n\r\nvar botimage = Ti.UI.createImageView({\r\n\timage : 'http://beaver6813.com/dev/jira/codestrong-2.png',\r\n\twidth : '100%',\r\n\theight : '100%',\r\n\ttop : 0,\r\n\tleft : 0,\r\n\tzIndex : 1,\r\n\topacity : 0.5\r\n});\r\n\r\nbotbox.add(botimage);\r\nwin.add(botbox);\r\ntopbox.add(topimage);\r\nwin.add(topbox);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "32717", "filename": "device-2012-10-17-143627.png", "author": { "name": "scleaver", "key": "scleaver", "displayName": "Sam Cleaver", "active": true, "timeZone": "Europe/London" }, "created": "2012-10-17T13:48:26.000+0000", "size": 259143, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: borderRadius on outer view can cause a jpeg to render incorrectly inside", "creator": { "name": "scleaver", "key": "scleaver", "displayName": "Sam Cleaver", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "scleaver", "key": "scleaver", "displayName": "Sam Cleaver", "active": true, "timeZone": "Europe/London" }, "environment": "SDK 3.0.2 GA / Latest TiStudio\r\nAndroid 4.0.4", "comment": { "comments": [ { "id": "245320", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reproduced with Ti SDK 3.0.2 GA, Samsung Galaxy S3 Android 4.0.4\n\nBug doesn't occur with Samsung Galaxy S2 Android 2.3.6, so it's a device-specific issue.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T23:15:21.000+0000", "updated": "2013-04-02T23:15:21.000+0000" }, { "id": "423547", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-05T21:22:00.000+0000", "updated": "2017-07-05T21:22:00.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }