Closed Bug 1816797 Opened 1 year ago Closed 1 year ago

Clicking a folder (that have many subfolders) scrolls the whole folder pane up so the folder is the “first row”.

Categories

(Thunderbird :: Folder and Message Lists, defect)

Thunderbird 111
defect

Tracking

(thunderbird_esr102 unaffected, thunderbird111 fixed)

RESOLVED FIXED
112 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird111 --- fixed

People

(Reporter: mkmelin, Assigned: mkmelin)

References

(Blocks 1 open bug)

Details

(Keywords: regression, Whiteboard: [Supernova3p])

Attachments

(1 file)

Clicking a folder (that have many subfolders, enough subfolders to fill the screen?) scrolls the whole folder pane up so the folder is the “first row”. Selecting the folder should not scroll at all.

I can't reproduce this on macOS or Windows.
I don't think we have any code that autoscrolls the tree, other than if the selected index is outside the viewport (eg. when navigating rows with the arrow keys up and down).
Can you still reproduce it? Can you create a screen recording, or figure out a trace if this method is triggered when not needed?

Flags: needinfo?(mkmelin+mozilla)

I can, and it's very annoying. It seems the key is to have more subfolders than fits the screen vertically.
It's apparently this call that is causing it: https://searchfox.org/comm-central/rev/aa8dc0b45f92a64c4b6b98565155693115909b6c/mail/base/content/widgets/tree-listbox.js#462. Changing the block param to something else doesn't help.

Thanks for the pointer, I found a solution.

Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Flags: needinfo?(mkmelin+mozilla)
Target Milestone: --- → 112 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/79a2878f3e3a
Don't scroll the whole folder + subfolders into view when clicking a folder that have many subfolders. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED

Comment on attachment 9318935 [details]
Bug 1816797 - Don't scroll the whole folder + subfolders into view when clicking a folder that have many subfolders. r=aleca

[Triage Comment]
Approved for beta

Attachment #9318935 - Flags: approval-comm-beta+
Whiteboard: [Supernova] → [Supernova3p]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: