On Jan 4, 2013, at 9:19 AM, Eric Gorr wrote:

> It seems like this should be a simple question. I can access the NSScrollView 
> of the WebView and ask the scroll view for the height of its document view, 
> but the height it returns is the current height of the WebView, not the 
> height of the content it currently contains.
> 
> If I reduce the height of the WebView, eventually the vertical scrollbar will 
> appear, so someone knows the real height of the content the WebView contains. 
> I simple want to be able to obtain that value so I can size the WebView to 
> this height, if it is reasonable to do so.
> 
> How can I do this?
> 
> Various proposed solutions I have found do not work.


First off, to avoid someone proposing a solution that you have already tried, 
you should actually mention which proposed solutions you have tried and how 
they didn't work for your case. So, risking that you have already tried this, 
what does [[yourWebView mainFrame] webView] frame] give you?

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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

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

Reply via email to