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
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 mails | Author | Date |
|---|---|---|
| Matt James | Mar 11, 17:18 | |
| Scott Stevenson | Mar 11, 23:25 | |
| Matt James | Mar 12, 02:34 | |
| Scott Stevenson | Mar 12, 06:07 | |
| Matt James | Mar 12, 12:56 | |
| Matt James | Mar 12, 13:06 | |
| Scott Stevenson | Mar 12, 23:15 | |
| Matt James | Mar 13, 02:15 | |
| Scott Stevenson | Mar 13, 04:08 | |
| Scott Stevenson | Mar 13, 04:11 |






Cocoa mail archive

