We have a layer-hosting document view that is contained in a
layer-backed scroll view. We have noticed that the scroll view does
some funky stuff to the layer if the view's -isFlipped returns YES.
This manifests itself in our app in the form of our document view
being scrolled by the correct amount but in the wrong direction at
startup. Everything gets fixed if the user scrolls the document.

Is there a known bug with NSScrollView and layer-hosting views? It
looks like NSClipView's implementation of
-_updateLayerGeometryFromView is at fault here. It is not being called
to correctly position the document view's layer within the clip view.

I have uploaded a sample project to
http://www.lanechng.com/ScrolledLayerHostingView.zip. Resize the
window to see the problem in action; then click one of the scroll
arrows to see it fix itself.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to