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)

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: neil, Assigned: cmanske)

References

Details

(Whiteboard: DEPENDS)

Attachments

(1 file)

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");
   }
 }
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
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).
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
Neil: I think "Suggested word list in Spelling Dialog doesn't size correctly
when there are no misspelled words" accurately describes the problem, correct?
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
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
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
verified in 5/9 build.
Status: RESOLVED → VERIFIED
This is NOT a dup of bug 67242 -- that was about spelling dictionary dialog.
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
r=cmanske. Need sr.
Status: REOPENED → ASSIGNED
Whiteboard: DEPENDS → DEPENDS, WORKAROUND FIX IN HAND, need SR
sr=kin@netscape.com
Whiteboard: DEPENDS, WORKAROUND FIX IN HAND, need SR → DEPENDS, WORKAROUND FIX IN HAND
checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
Whiteboard: DEPENDS, WORKAROUND FIX IN HAND → DEPENDS
marking verified.
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: