jquery resize window to fit contents
<p>I have a simple popup window that shows <code>300x300px</code> picture, I set up the size of the window to be <code>350x350px</code>, but depending on the browser I either get scroll bars or extra white space. Is there some jQuery function that would resize the browser window just to fit the content without any scroll bars or white space, no matter what browser?</p>

<p>Help me out!!</p>
