From c174a83a601e64ad01ee3d9baf9b39eae19dcfe2 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Mon, 5 Jul 1999 23:45:24 +0000 Subject: [PATCH] Make popups work with intrinsic sizing. git-svn-id: svn://10.0.0.236/trunk@38381 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsWebShellWindow.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp index fd206c63681..b6ced91b718 100644 --- a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp @@ -1242,9 +1242,10 @@ nsWebShellWindow::CreatePopup(nsIDOMElement* aElement, nsIDOMElement* aPopupCont nsWidgetInitData widgetInitData; widgetInitData.mBorderStyle = eBorderStyle_BorderlessTopLevel; + window->SetIntrinsicallySized(PR_TRUE); rv = window->Initialize((nsIWebShellWindow *) nsnull, nsnull, nsnull, nsnull, nsnull, - 200, 300, widgetInitData); + 1, 1, widgetInitData); if (NS_FAILED(rv)) return rv; @@ -2795,9 +2796,7 @@ nsWebShellWindow::IsMenuBarVisible(PRBool *aVisible) NS_IMETHODIMP nsWebShellWindow::HandleUrl(const PRUnichar * aCommand, const PRUnichar * aURLSpec, nsIPostData * aPostData) -{ - nsresult rv; - +{ /* Make the topic to observe. The topic will be of the format * linkclick:. Note thet this is a totally made up thing. * Things are going to change later