Closed
Bug 78460
Opened 24 years ago
Closed 24 years ago
Spelling Dictionary dialog resizes after adding new word when user's dictionary list is empty
Categories
(Core :: DOM: Editor, defect)
Tracking
()
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: cmanske, Assigned: cmanske)
References
Details
Attachments
(2 files)
This bug is really an XPFE problem (bug 74467), which won't be fixed in time,
so there is a JS workaround (to be attached), otherwise, this dialog is not
useable the first time (i.e., no existing user dictionary file: "custom.dic")
Assignee | ||
Comment 2•24 years ago
|
||
Assignee | ||
Comment 3•24 years ago
|
||
Sorry to add so much extra changes, but this dialog was in need of cleanup since
it didn't use the common pattern of attaching XUL elements to a "dialog" object.
This are the lines that fix for the resize problem:
+ var haveList = false;
+
// Get words until an empty string is returned
do {
word = spellChecker.GetPersonalDictionaryWord();
if (word != "")
- AppendStringToTreelist(DictionaryList, word);
-
+ {
+ AppendStringToTreelist(dialog.DictionaryList, word);
+ haveList = true;
+ }
} while (word != "");
+
+ //BUG 74467: If list is empty, tree doesn't layout to full height correctly
+ // (ignores "rows" attribute)
+ if (!haveList)
+ AppendStringToTreelist(dialog.DictionaryList, " ");
sr=kin@netscape.com with the changes we discussed.
Assignee | ||
Comment 5•24 years ago
|
||
Assignee | ||
Comment 6•24 years ago
|
||
What the ??? Last patch is bogus. Shouln't include EdDialog.js change -- that
was part of fix for bug 77930! The EdDictionary changes in 5/04 patch are the
correct ones I checked in.
You need to log in
before you can comment on or make changes to this bug.
Description
•