treeView scrollToRow can cause rows to seemingly disappear

RESOLVED INACTIVE

Status

()

Core
XUL
RESOLVED INACTIVE
11 years ago
3 days ago

People

(Reporter: Todd Whiteman, Assigned: janv)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

2.31 KB, application/vnd.mozilla.xul+xml
Details
(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061208 Firefox/2.0.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061208 Firefox/2.0.0.1

I have a tree with a custom tree view, to which I want to scroll to a particular node. I was wanting to use scrollToRow to ensure that the the targeted row is at the top of the tree where applicable.

The problem is that the where applicable is currently anywhere, but I would expect scrollToRow to only scroll when:
1) there are more tree rows than visible rows (or)
2) there is a scrollbar shown (same as above?)

I'll attach a xul file to show the bug.


Reproducible: Always

Steps to Reproduce:
1. Open attached xul file
2. Click on the button "Show Bug"
3. Tree rows are scrolled off the top

Actual Results:  
Tree rows get scrolled off the top of the tree view (looks like they disappear)

Expected Results:  
Tree rows to stay as they were, as the number of visible tree rows exceeds the total number of tree data rows.
(Reporter)

Comment 1

11 years ago
Created attachment 255834 [details]
Show off scrollToRow problem

Updated

10 years ago
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: xptoolkit.trees → xptoolkit.widgets

Comment 2

3 days ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 days ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.