add: this.mDialog.sizeToContent(); 
context:     initDialog : function() {         // Check if file is executable (in which case, we will go straight to         // "save to disk").         var ignore1 = new Object;         var ignore2 = new Object;         var tmpFile = this.mLauncher.getDownloadInfo( ignore1, ignore2 );         if ( tmpFile.isExecutable() ) {             this.mLauncher.saveToDisk( null, false );             this.mDialog.close();             return;         }         // Put product brand short name in prompt.         var prompt = this.dialogElement( "prompt" );         var modified = this.replaceInsert( prompt.firstChild.nodeValue, 1, this.getString( "brandShortName" ) );         prompt.firstChild.nodeValue = modified;         // Put file name in window title.         var win   = this.dialogElement( "nsHelperAppDlg" );         var url   = this.mLauncher.source.QueryInterface( Components.interfaces.nsIURL );         var fname = "";         this.mSourcePath = url.prePath;         if ( url ) {             // A url, use file name from it.             fname = url.fileName;             this.mSourcePath += url.directory;         } else {             // A generic uri, use path.             fname = this.mLauncher.source.path;             this.mSourcePath += url.path;         }         var title = this.replaceInsert( win.getAttribute( "title" ), 1, fname);         win.setAttribute( "title", title );         // Put content type and location into intro.         this.initIntro(url);         var iconString = "moz-icon://" + fname + "?size=32&contentType=" + this.mLauncher.MIMEInfo.MIMEType;         this.dialogElement("contentTypeImage").setAttribute("src", iconString);         this.initAppAndSaveToDiskValues();         // always make sure the window starts off with this checked....         this.dialogElement( "alwaysAskMe" ).checked = true;         // Add special debug hook.         if ( this.debug ) {             prompt.setAttribute( "onclick", "dialog.doDebug()" );         }         // Set up dialog button callbacks.         var object = this; // "this.onOK()" doesn't work!         this.mDialog.doSetOKCancel( function () { return object.onOK(); },                                     function () { return object.onCancel(); } );         // Position it.         if ( this.mDialog.opener ) {             this.mDialog.moveToAlertPosition();         } else {             this.mDialog.centerWindowOnScreen();         }         // Set initial focus         this.dialogElement( "mode" ).focus();    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0352d62a2860c66b143f88617a517a56d0a7038e/nsHelperAppDlg.js/buggy/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js