Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added copying of cell's layer properties to the draggable view #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bkryza
Copy link

@bkryza bkryza commented Mar 26, 2014

Hi,

I had a small problem with cells which had nonzero corner radius and shadow as well as some scale transform (e.g. on selected cells). The properties were not copied to the draggable preview image view and it looked strange.

I've added a simple fix which copies main layer attributes from the cell view to the draggable preview and also calculates the preview frame based on the bounds property (and adjusts the center) which works even when the original cell has some scale transform.

Cheers,
Bartosz

@jeffdav
Copy link

jeffdav commented Mar 28, 2014

I had a similar problem (I had specific requirements for visual adjustments to the draggable preview image) that I solved by adding some delegate methods. See my pull request (#60). I think it solves the problem in a more generic way.

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