Closed Bug 1847842 Opened 2 years ago Closed 2 years ago

Prevent TreeView widget scrolling to a row that doesn't exist

Categories

(Thunderbird :: Folder and Message Lists, defect, P2)

defect

Tracking

(thunderbird_esr115+ fixed, thunderbird117 fixed)

RESOLVED FIXED
118 Branch
Tracking Status
thunderbird_esr115 + fixed
thunderbird117 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

Details

Attachments

(1 file)

If the selected index of a TreeView is set to -1 (no selection) it scrolls to the top, because -1 is below zero and it can't scroll any further. Removing the selection by any means should not scroll the view. We should avoid calling scrollToIndex in this situation, and even if we do it should report the bad index and refuse to do anything.

Severity: -- → S3
Priority: -- → P2

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/b0724a07f90f
Prevent TreeView widget scrolling to a row that doesn't exist. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch

Comment on attachment 9348019 [details]
Bug 1847842 - Prevent TreeView widget scrolling to a row that doesn't exist. r=#thunderbird-front-end-reviewers

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined: in some circumstances the message list can scroll to the top for no apparent reason
Testing completed (on c-c, etc.): landed 5 days ago
Risk to taking this patch (and alternatives if risky): low

Attachment #9348019 - Flags: approval-comm-beta?

Comment on attachment 9348019 [details]
Bug 1847842 - Prevent TreeView widget scrolling to a row that doesn't exist. r=#thunderbird-front-end-reviewers

[Triage Comment]
Approved for beta

Attachment #9348019 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9348019 [details]
Bug 1847842 - Prevent TreeView widget scrolling to a row that doesn't exist. r=#thunderbird-front-end-reviewers

[Triage Comment]
Approved for esr115

Attachment #9348019 - Flags: approval-comm-esr115+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: