dataWithPDFInsideRect: subview positions when using layer backed views
dataWithPDFInsideRect: subview positions when using layer backed views
- Subject: dataWithPDFInsideRect: subview positions when using layer backed views
- From: Gideon King <email@hidden>
- Date: Sat, 16 Nov 2013 19:51:33 +1000
Here’s the scenario: All views are flipped. OSX 10.9.
I have a view with frame and bounds 0,0,2000,2000.
The first subview has a frame 0,0,2000,2000 and bounds -1000,-1000,2000,2000. I set it to draw a solid color. On screen it covers the first view.
It has a number of small 100,50 subviews at different locations.
All this draws fine on screen, whether I am using layer backing or not. If I do not use layer backing, it also renders properly using dataWithPDFInsideRect:.
As soon as I start using layer backing, dataWithPDFInsideRect: gives the following result:
- the first level subview draws as if its origin was the same as its superview - i.e. it only covers the top left quadrant of the superview,
- all the second level subviews draw on top of each other at origin 0,0.
Is this a known issue? Is there a workaround (apart from not using layers)?
Thanks
Gideon
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden