Skip to content

Fixed Shadow Issues#440

Merged
lkzhao merged 4 commits intoHeroTransitions:masterfrom
2blane:master
Apr 27, 2018
Merged

Fixed Shadow Issues#440
lkzhao merged 4 commits intoHeroTransitions:masterfrom
2blane:master

Conversation

@2blane
Copy link
Copy Markdown
Contributor

@2blane 2blane commented Apr 4, 2018

Shadows were being cutoff by the snapshots (because they use the bounds of the view and shadows exist outside the bounds), and then were applied again to the snapshot. This fix first removes the shadows, takes the snapshot, and then adds the shadows back to the snapshot much like the cornerRadius property.

Shadows were being cutoff by the snapshots, and then were applied again to the snapshot. This fix first removes the shadows, takes the snapshot, and then adds the shadows to the snapshot much like the cornerRadius.
@lkzhao
Copy link
Copy Markdown
Collaborator

lkzhao commented Apr 12, 2018

This is great, just wondering if we should include shadowOpacity as well?

@2blane
Copy link
Copy Markdown
Contributor Author

2blane commented Apr 20, 2018

Good catch, I just added the shadow opacity property.

@lkzhao lkzhao merged commit 7d61342 into HeroTransitions:master Apr 27, 2018
@lkzhao
Copy link
Copy Markdown
Collaborator

lkzhao commented Apr 27, 2018

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants