Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28103] iOS: View shadow not working anymore if combined with border radius (9.1.0 regression)

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2020-09-11T15:27:44.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.2.0, Release 9.1.1
ComponentsiOS
Labelsregression
ReporterHans Knöchel
AssigneeVijay Singh
Created2020-08-28T11:51:13.000+0000
Updated2020-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

FileDateSize
Simulator Screen Shot - iPhone SE (2nd generation) - 2020-08-28 at 13.48.52.png2020-08-28T11:51:01.000+000038235
Simulator Screen Shot - iPhone SE (2nd generation) - 2020-08-28 at 13.49.06.png2020-08-28T11:51:01.000+000031647

Comments

  1. Vijay Singh 2020-09-03

    PR - https://github.com/appcelerator/titanium_mobile/pull/12005 This will fix TIMOB-28110 also.
  2. Brian García 2020-09-03

  3. Vijay Singh 2020-09-04

    Test Case - https://gist.github.com/vijaysingh-axway/fcabd70f941ce2984e5ad1693e166cd1
  4. Satyam Sekhri 2020-09-08

  5. Satyam Sekhri 2020-09-08

    Waiting for Jenkins build
  6. Christopher Williams 2020-09-09

    merged to master, backport PR to 9_1_X merged, manually cherry-picked to 9_3_X
  7. Samir Mohammed 2020-09-11

    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

JSON Source