Bug 942548 The hight of editor spell check dialog is too short so you can see only the top of the buttons at the bottom r=Neil a-comm-beta=IanN. RELEASE_BASE_20140203
authorPhilip Chee <philip.chee@gmail.com>
Sat, 30 Nov 2013 14:12:36 +0800
changeset 16835 874f4107c0fd264752c8139021342da265cb0eed
parent 16834 804f11563f99472e77e59e8ea8f828dd64b2fcb2
child 16836 4d564c1d9df635e9f1a664b6a76178a0e859641c
push idunknown
push userunknown
push dateunknown
reviewersNeil
bugs942548
Bug 942548 The hight of editor spell check dialog is too short so you can see only the top of the buttons at the bottom r=Neil a-comm-beta=IanN. a=CLOSED TREE
editor/ui/dialogs/content/EdSpellCheck.js
editor/ui/dialogs/content/EdSpellCheck.xul
--- a/editor/ui/dialogs/content/EdSpellCheck.js
+++ b/editor/ui/dialogs/content/EdSpellCheck.js
@@ -102,16 +102,18 @@ function spellCheckStarted() {
     //  Esc keybinding and related window close actions)
     gDialog.StopButton.hidden = true;
   }
 
   // Clear flag that determines message when
   //  no misspelled word is found
   //  (different message when used for the first time)
   gFirstTime = false;
+
+  window.sizeToContent();
 }
 
 function InitLanguageMenu(aCurLang)
 {
 
   var o1 = {};
   var o2 = {};
 
--- a/editor/ui/dialogs/content/EdSpellCheck.xul
+++ b/editor/ui/dialogs/content/EdSpellCheck.xul
@@ -4,17 +4,17 @@
    - License, v. 2.0. If a copy of the MPL was not distributed with this
    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
 
 <?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?> 
 <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?> 
 <!DOCTYPE dialog SYSTEM "chrome://editor/locale/EditorSpellCheck.dtd">
 
 <!-- dialog containing a control requiring initial setup -->
-<dialog buttons="cancel" title="&windowTitle.label;"
+<dialog id="spellCheckDlg" buttons="cancel" title="&windowTitle.label;"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     persist="screenX screenY"
     onload = "Startup()"
     ondialogaccept="return doDefault();"
     ondialogcancel="return CancelSpellCheck();">
 
   <script type="application/javascript" src="chrome://editor/content/editorUtilities.js"/>
   <script type="application/javascript" src="chrome://editor/content/EdDialogCommon.js"/>