Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

remove the shadow padding and draw the shadow out of the bound instead #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yangweigbh
Copy link

remove the shadow padding and draw the shadow out of the bound instead

@JlUgia
Copy link
Contributor

JlUgia commented Jul 31, 2013

Well, there's an inconvenient of doing it this way and this is that it'd be necessary to have the shadowWidth into account when placing your subviews inside of the sliding layer, because otherwise they'll appear above the shadow.
The right approach here would be to limit the content to the boundaries of the container (without shadow) while still drawing the shadow with a certain offset.
Up until now I've tried but I haven't been able to get something that I was happy with.
Count on me if you give it a try :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants