Skip navigation.
 
mlRe: CAScrollLayer "Contents" Size
FROM : Scott Stevenson
DATE : Tue Mar 11 23:25:24 2008

On Mar 11, 2008, at 9:18 AM, Matt James wrote:

> Does anyone know how to get a CAScrollLayer's "content width".  Ie, 
> how do I
> tell the width of what my scroll layer contains rather than it's 
> clipped
> area?  I tried logging scrollLayer.contentsRect.size.width, but that 
> only
> gave me "1.0" no matter what.  Note that using
> scrollLayer.frame.size.widthalways gives me the "clipped" width.



What if you use the layer bounds instead of frame?

      - Scott

Related mailsAuthorDate
mlCAScrollLayer "Contents" Size Matt James Mar 11, 17:18
mlRe: CAScrollLayer "Contents" Size Scott Stevenson Mar 11, 23:25
mlRe: CAScrollLayer "Contents" Size Matt James Mar 12, 02:34
mlRe: CAScrollLayer "Contents" Size Scott Stevenson Mar 12, 06:07
mlRe: CAScrollLayer "Contents" Size Matt James Mar 12, 12:56
mlRe: CAScrollLayer "Contents" Size Matt James Mar 12, 13:06
mlRe: CAScrollLayer "Contents" Size Scott Stevenson Mar 12, 23:15
mlRe: CAScrollLayer "Contents" Size Matt James Mar 13, 02:15
mlRe: CAScrollLayer "Contents" Size Scott Stevenson Mar 13, 04:08
mlRe: CAScrollLayer "Contents" Size Scott Stevenson Mar 13, 04:11