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

[F3] Sublayers doesn't get clipped and doesn't position relatively to their superview #61

Closed
awt2542 opened this issue May 11, 2014 · 2 comments

Comments

@awt2542
Copy link
Contributor

awt2542 commented May 11, 2014

Sub layers doesn't seem to be positioned after their superview's coordinates. Also, can't seem to get clip to work. Here's an example:

super = new Layer
 width: 250
 height: 300
 midX: 200
 clip: true

sub = new Layer
 y: super.maxY-20
 height: 100
 width: super.width
 superView: super
@koenbok
Copy link
Owner

koenbok commented May 11, 2014

It's because superView is now called superLayer. superView still works on Views, which is a compatibility object for Layer. Maybe I should revise that.

@koenbok
Copy link
Owner

koenbok commented May 11, 2014

Done. 17fa857

@koenbok koenbok closed this as completed May 11, 2014
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

No branches or pull requests

2 participants