Re: scrolling content view resizes visibly but bounds and frame don't change
Re: scrolling content view resizes visibly but bounds and frame don't change
- Subject: Re: scrolling content view resizes visibly but bounds and frame don't change
- From: Quincey Morris <email@hidden>
- Date: Sat, 11 Sep 2010 16:13:52 -0700
On Sep 11, 2010, at 14:34, Christopher Corbell wrote:
> However the basic issue still remains - even with the scrollView that the webView implements automagically, its contentView bounds do NOT change even when the visual content is clearly larger than the frame and the vertical scroller is present and adjusted properly.
Well, beats me. :)
However, I'll point out that in a NSScrollView, the *content* view does not change size as content is added. It's the *document* view that changes size. Remember that the document view is the whole thing, while the content view is just the part of it that you can currently see.
Also, if you look at figure 1 here:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/DisplayWebContent/Concepts/WebKitDesign.html
it's clear that the structure of the example page is such that the main frame's view is not a scroll view. Perhaps the view hierarchy of your page, and your content's location within it, is not what you assume.
_______________________________________________
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