<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>This is for implementing the windowWillUseStandardFrame:defaultFrame: method on OS X, which enables the green button to do an optimized zoom. How can I find out what height and width a WebView wants to be if it had infinite screen space? If it negotiates the size instead, assume that the maximum width is X and height is Y (which I would compute within windowWillUseStandardFrame:defaultFrame:). These views have scrollbars within their window, so they must have an internal notion of what size they want to be.</div><div><br></div><div>This has to work whether or not the WebView is showing either HTML or anything else.</div><div><br></div><div>Asking a similar question on the Cocoa list, a respondent lamented that web browsers these days just punt on the question and go full screen. I don’t want to do that.</div><div><br></div><div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>— </div><div>Daryle Walker<br>Mac, Internet, and Video Game Junkie<br>darylew AT mac DOT com </div></div>
</div>
<br></body></html>