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-aurora=IanN
authorPhilip Chee <philip.chee@gmail.com>
Sat, 30 Nov 2013 14:12:36 +0800
changeset 17006 b03561ae7689b9187ba45573fad4ca953e4a890c
parent 17005 694d0b1e0284ef1fa11b841c5e6e397b9b583738
child 17007 70d35117ff596e963cf02e4131d8b9f8163d9c38
push id1074
push userbugzilla@standard8.plus.com
push dateMon, 03 Feb 2014 22:47:23 +0000
treeherdercomm-beta@6b791b5369ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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-aurora=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"/>