Closed Bug 290921 Opened 20 years ago Closed 20 years ago

Funky drop down box scroll bar behaviour

Categories

(Core :: XUL, defect)

x86
All
defect
Not set
major

Tracking

()

VERIFIED FIXED

People

(Reporter: deleeuw+bugzilla, Assigned: roc)

References

(Depends on 1 open bug)

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050418 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050418 Firefox/1.0+ When I open prefs > content > fonts & colors > advanced, all the drop down boxes in this dialog with scrollbars behaves very strangely when I use them. For instance, clicking in the "thumb" when it is at its upmost position and trying to drag it down, I seem to have to travel quite a distance down, until I am no longer with the mouse pointer of the thumb, to be able to move the thumb down. Reproducible: Always Steps to Reproduce: 1. Open prefs > content > fonts & colors > advanced 2. Use the scrollbars in drop downs 3. Notice the funky behaviour
This works fine in the 20050417 build, fresh regression Steps to reproduce 1. go to tools/options/content/font & colors/advanced 2. Expand the sans-serif dropdown 3. Scroll it using the scrollbar thumb, the cursor position will not be on the scrollbar
Severity: normal → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Assignee: bugs → jag
Component: Preferences → XP Toolkit/Widgets
Product: Firefox → Core
QA Contact: mconnor → jrgmorrison
Version: unspecified → Trunk
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050418 Firefox/1.0+ Confirmed.
linux gtk2 firefox trunk 2005-04-18-07Z: When dragging scrollbar thumb in a single-select box dropdown list (example: Component dropdown on this bug report), the thumb is offset downward approximately by the distance between top edge of web page viewport and the select widget. The scroll position of the list follows the thumb, not mouse pointer location.
OS: Windows XP → All
I remember the last time some similar regression occured, that was bug 254061.
Confirmed. Happens on every single drop down. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050419 Firefox/1.0+
Confirmed
The problem is that in popups, GetClientX/Y actually returns coordinates relative to top-left of the popup.
Attached patch fix (obsolete) — Splinter Review
sigh
Assignee: jag → roc
Status: NEW → ASSIGNED
Attachment #181205 - Flags: superreview?(bzbarsky)
Attachment #181205 - Flags: review?(bzbarsky)
Comment on attachment 181205 [details] [diff] [review] fix r+sr=bzbarsky, with vile imprecations hurled at certain XUL authors who shall remain nameless...
Attachment #181205 - Flags: superreview?(bzbarsky)
Attachment #181205 - Flags: superreview+
Attachment #181205 - Flags: review?(bzbarsky)
Attachment #181205 - Flags: review+
Comment on attachment 181205 [details] [diff] [review] fix fix scrolling event coordinate code to handle bizarre behaviour of DOM .clientX/.clientY in popups
Attachment #181205 - Flags: approval1.8b2?
Comment on attachment 181205 [details] [diff] [review] fix fix scrolling event coordinate code to handle bizarre behaviour of DOM .clientX/.clientY in popups (regression)
Attachment #181205 - Flags: approval1.8b2?
Depends on: 289792
I just had a thought... is the bogosity with walking up from the document widget an issue for popups inside subframes? Could you test those, roc?
Attached patch better fixSplinter Review
Using screen coordinates is quite clean and looks foolproof.
Attachment #181205 - Attachment is obsolete: true
Attachment #181241 - Flags: superreview?(bzbarsky)
Attachment #181241 - Flags: review?(bzbarsky)
Comment on attachment 181241 [details] [diff] [review] better fix Rename clientPosPx to ourPosPx (or posPx?), and r+sr=bzbarsky
Attachment #181241 - Flags: superreview?(bzbarsky)
Attachment #181241 - Flags: superreview+
Attachment #181241 - Flags: review?(bzbarsky)
Attachment #181241 - Flags: review+
Comment on attachment 181241 [details] [diff] [review] better fix a more robust fix to the combobox dropdown scrollbar regression
Attachment #181241 - Flags: approval1.8b2?
Comment on attachment 181241 [details] [diff] [review] better fix a=asa
Attachment #181241 - Flags: approval1.8b2? → approval1.8b2+
checked in
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Verified FIXED on Windows XP Seamonkey trunk (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050421)
Status: RESOLVED → VERIFIED
Depends on: 291083
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: