[TIMOB-28103] iOS: View shadow not working anymore if combined with border radius (9.1.0 regression)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-09-11T15:27:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 9.2.0, Release 9.1.1 |
Components | iOS |
Labels | regression |
Reporter | Hans Knöchel |
Assignee | Vijay Singh |
Created | 2020-08-28T11:51:13.000+0000 |
Updated | 2020-09-18T17:09:23.000+0000 |
Description
When using both a border radius and view shadow, the view shadow is not honored anymore. See this example:
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
var roundedShadowView = Ti.UI.createView({
backgroundColor: 'red',
width: 100,
height: 100,
borderRadius: 50, // <-- comment out this line and shadow works again
viewShadowColor: '#000',
viewShadowRadius: 10,
viewShadowOffset: { x: 0, y: 5 }
});
win.add(roundedShadowView);
win.open();
See attachments for details.
Attachments
File | Date | Size |
---|---|---|
Simulator Screen Shot - iPhone SE (2nd generation) - 2020-08-28 at 13.48.52.png | 2020-08-28T11:51:01.000+0000 | 38235 |
Simulator Screen Shot - iPhone SE (2nd generation) - 2020-08-28 at 13.49.06.png | 2020-08-28T11:51:01.000+0000 | 31647 |
PR - https://github.com/appcelerator/titanium_mobile/pull/12005 This will fix TIMOB-28110 also.
Test Case - https://gist.github.com/vijaysingh-axway/fcabd70f941ce2984e5ad1693e166cd1
Waiting for Jenkins build
merged to master, backport PR to 9_1_X merged, manually cherry-picked to 9_3_X
Closing ticket. Fix verified in SDK version 9.2.0.v20200911051822, and 9.3.0.v20200911052140, 9.1.1.v20200910063052. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/12005