Closed Bug 351267 Opened 19 years ago Closed 19 years ago

Scroll position re-used in autocomplete dropdown

Categories

(SeaMonkey :: Autocomplete, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ajschult784, Assigned: ajschult784)

Details

Attachments

(1 file)

With linux seamonkey build 2006-09-03-08-trunk, if I select a choice from the autocomplete dropdown and then type something else to re-activate the dropdown, it scrolls to the position where it was the first time with nothing selected. 1. Load a bunch of .mozilla.org URLs 2. clear the location bar 3. type "m" 4. select an entry near the end 5. type "m" ==> dropdown scroll position near the end The same happens if you type a different character at step 5, so it's not trying to be smart and re-select the entry you had before. Firefox doesn't have this bug, but I don't see what it does differently. Anyway, this isn't too hard to fix although there might be something more robust than what I have.
Attached patch patchSplinter Review
This also scrolls to the top when typing if you scrolled down, but resetting the scroll position also seems desirable for that case (since the scroll position you get without this change is more or less random).
Attachment #236676 - Flags: superreview?(neil)
Attachment #236676 - Flags: review?(neil)
Comment on attachment 236676 [details] [diff] [review] patch Hmm... rowCountChanged() is supposed to adjust the top row index...
(In reply to comment #2) >Hmm... rowCountChanged() is supposed to adjust the top row index... Oh I see now, this is happening inside a batch update...
Comment on attachment 236676 [details] [diff] [review] patch I guess this is as good a place as any to do this.
Attachment #236676 - Flags: superreview?(neil)
Attachment #236676 - Flags: superreview+
Attachment #236676 - Flags: review?(neil)
Attachment #236676 - Flags: review+
fixed
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: