I've embedded Gecko into an App I've created...sorta a web browser, but very limited and very customized for what we need. Here is my problem. When I'm browsing around the web with it, the nsIDOMWindow::SizeToContent () works great (I call it after the page has loaded on nsIWebProgressListener::OnStateChange ()) and my window resizes to the content like it should. But when I have a popup window...say a JS window..that content does NOT resize properly. It is usually way too small for the content. I tracked down the width and height it's telling me I should resize my window too and those dimensions are too small for the content. So, I'm not sure why it's telling me to resize to something smaller than what it should be resized to. Am I forgetting to do something for modal JS popup windows that I don't have to do for "normal" windows? Or do I just need to add a bit to the width and height when I detect it's that type of window? I'd rather like to know why it's doing this than put a hack into it. Thanks in advance!
Niky Williams _______________________________________________ mozilla-embedding mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-embedding
