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)

x86
Windows NT
defect
Not set
normal

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")
Adding depency on the real problem, bug 74467.
Status: NEW → ASSIGNED
Depends on: 74467
Target Milestone: --- → mozilla0.9.1
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, " ");
Keywords: patch, review
Whiteboard: FIX IN HAND need r=, sr=
sr=kin@netscape.com with the changes we discussed.
Whiteboard: FIX IN HAND need r=, sr= → FIX IN HAND need r=
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.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Keywords: patch, review
Resolution: --- → FIXED
Whiteboard: FIX IN HAND need r=
verified in 6/6 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: