Re: Determining optimum size for a WebView
Re: Determining optimum size for a WebView
- Subject: Re: Determining optimum size for a WebView
- From: Matt Gemmell <email@hidden>
- Date: Tue, 24 Jun 2003 16:57:03 +0100
On 24/6/03 at 3:38 pm, Matt Gough said:
>
How do I get the 'best-fit' size for a WebView? (i.e. the minimum
>
size needed to display it without any scroll bars). I was assuming
>
that NSView would have some such method, but couldn't find anything.
>
(I'm a newbie BTW)
Not sure about a WebView (I've only just started playing with WebKit),
but if you have a view within a NSScrollView, then the native size of
the content should be accessible via:
[[yourScrollView documentView] frame].size
You'd need to check the WebKit's documentation to check how to access
this. I see that there's a class called WebFrame as well as the WebView
class; try looking in the docs for that one.
Cheers,
-Matt
--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.