[TIMOB-12500] Android: borderRadius does not clip the content on some devices
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-02-21T12:20:58.000+0000 |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | Release 3.1.0, 2013 Sprint 04 API, 2013 Sprint 04 |
| Components | Android |
| Labels | SupportTeam, api, module_tableview, qe-testadded |
| Reporter | Varun Joshi |
| Assignee | Vishal Duggal |
| Created | 2013-01-30T22:09:16.000+0000 |
| Updated | 2014-07-04T10:28:44.000+0000 |
Description
Issue
Run the sample code below: http://pastie.org/private/yr2e8eil9t1oka9vqvi38q The borders are not clipped on specific devices if borderRadius is used. (Attached is the screenshot of the output on Droid 4 running Android 4.0.4) This issue does not happen in Galaxy S2 running 4.0.4Expected Output
The expected output is attached. (expectedoutput.png)Attachments
| File | Date | Size |
|---|---|---|
| borderRadiusScreenshot.png | 2013-01-30T22:09:16.000+0000 | 14283 |
| expectedoutput.png | 2013-01-30T22:09:16.000+0000 | 22433 |
Note to QE. Make sure the tiapp.xml is modified to enable HW acceleration. Run on anything above 3.0. I tested this with S3 running 4.1.1 and Nexus4 running 4.2 Something like this
Test caseTitanium.UI.setBackgroundColor('#000'); var win = Titanium.UI.createWindow({ title : 'Tab 1', backgroundColor : '#fff' }); var rows = []; for (var i = 0; i < 5; i++) { var row = Ti.UI.createTableViewRow({}); row.add(Ti.UI.createView({ width : 100, height : 50, left : 0, backgroundColor : 'blue', borderWidth : 1, borderColor : '#000' })); rows.push(row); }; var table = Ti.UI.createTableView({ data : rows, borderWidth : 1, borderRadius : 30, borderColor : 'blue', backgroundColor : '#fff', rowHeight : 50, top : 100, left : 100, right : 100, height : Ti.UI.SIZE }); win.add(table); win.open();Pull pending https://github.com/appcelerator/titanium_mobile/pull/3865
Environment used for verification - Titanium SDK: 3.1.0.v20130220163402 Titanium Studio:3.0.2.201302141201 Device : Samung GALAXY Tab 620 Android 3.2 and Samsung Galaxy Nexus Android 4.0.2
Re-opening to add and edit verification environment details.