Closed
Bug 74972
Opened 23 years ago
Closed 23 years ago
workaround for suggested word shrinkage at end of spellcheck
Categories
(Core :: DOM: Editor, defect, P4)
Tracking
()
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: neil, Assigned: cmanske)
References
Details
(Whiteboard: DEPENDS)
Attachments
(1 file)
929 bytes,
patch
|
Details | Diff | Splinter Review |
Index: EdSpellCheck.js =================================================================== RCS file: /cvsroot/mozilla/editor/ui/dialogs/content/EdSpellCheck.js,v retrieving revision 1.33 diff -u -r1.33 EdSpellCheck.js --- EdSpellCheck.js 2001/04/04 04:05:14 1.33 +++ EdSpellCheck.js 2001/04/06 10:58:32 @@ -422,6 +422,9 @@ // Initialize with first suggested list by selecting it dialog.SuggestedList.selectedIndex = 0; } + } else { + var item = AppendStringToTreelist(list, ""); + if (item) item.setAttribute("disabled", "true"); } }
Comment 1•23 years ago
|
||
assigning to kin for review of suggested patch
Assignee: beppe → kin
Priority: -- → P4
Target Milestone: --- → mozilla1.0
cmanske can you give an r= on this patch if you're ok with it?
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•23 years ago
|
||
I already have a "workaround" solution very close to Neil's in my tree, but this is for the list layout problem (bug 74467) in the Spelling Dictionary dialog. What exactly is the problem in the spell dialog that this is solving? The complete block before the suggested patch is this: if (count == 0) { // No suggestions - show a message but don't let user select it var item = AppendStringToTreelistById(list, "NoSuggestedWords"); if (item) item.setAttribute("disabled", "true"); allowSelectWord = false; } else { allowSelectWord = true; // Initialize with first suggested list by selecting it dialog.SuggestedList.selectedIndex = 0; } So we are putting a string ("No suggested words") in the list when none are found supplied by spell checker. So I don't see how this code can be reached.
I think his "else" clause corresponds to the if (MisspelledWord.length > 0).
Assignee | ||
Comment 5•23 years ago
|
||
Got it. It's exactly the same issue as in the Dictionary dialog. I pinged hyatt and he says he'll look at the issue (bug 74467) soon. Let's hold off on any workarounds.
Depends on: 74467
Assignee | ||
Comment 6•23 years ago
|
||
Neil: I think "Suggested word list in Spelling Dialog doesn't size correctly when there are no misspelled words" accurately describes the problem, correct?
Assignee | ||
Comment 7•23 years ago
|
||
Sorry for another message, but I should take this. Also changing milestone to 0.9.1
Assignee: kin → cmanske
Status: ASSIGNED → NEW
Target Milestone: mozilla1.0 → mozilla0.9.1
Assignee | ||
Comment 8•23 years ago
|
||
Will be fixed when 74467 is fixed, else we will add a blank item as suggested by Neil.
Severity: trivial → normal
Status: NEW → ASSIGNED
Whiteboard: DEPENDS
Assignee | ||
Comment 9•23 years ago
|
||
The workaround is easy -- will do for 9.1 so this is really a dup of 67242 *** This bug has been marked as a duplicate of 67242 ***
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 11•23 years ago
|
||
This is NOT a dup of bug 67242 -- that was about spelling dictionary dialog.
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
Assignee | ||
Comment 12•23 years ago
|
||
Assignee | ||
Comment 13•23 years ago
|
||
r=cmanske. Need sr.
Status: REOPENED → ASSIGNED
Whiteboard: DEPENDS → DEPENDS, WORKAROUND FIX IN HAND, need SR
Comment 14•23 years ago
|
||
sr=kin@netscape.com
Whiteboard: DEPENDS, WORKAROUND FIX IN HAND, need SR → DEPENDS, WORKAROUND FIX IN HAND
Assignee | ||
Comment 15•23 years ago
|
||
checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Whiteboard: DEPENDS, WORKAROUND FIX IN HAND → DEPENDS
You need to log in
before you can comment on or make changes to this bug.
Description
•