Closed Bug 18196 Opened 25 years ago Closed 25 years ago

[Tree]scrolling w/arrow keys unpredictable in tree

Categories

(Core :: XUL, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: cmaximus, Assigned: alecf)

Details

Attachments

(1 file)

Overview Description:
	Sorry for the muddy summary but there is no good way to capture the problem.
Selecting an item in a tree view and then using the arrow keys to sroll around has strange
-and tricky to repro results.

Steps to Reproduce:

1) Open the bookmarks window. Expand the tree such that it is longer than the window.
2) Select an item that is not the topmost or bottommost viewable item.
3) Use the arrow down arrow key to try and scroll the other items into the viewable area.

Actual Results:
	What happens most of the time is the selection scrolls to the top of the viewable
area instead of scrolling the tree - but only the first time through the list. If you keep
scrolling down the view will then scroll. After the selection mistakenly scrolls scrolling up
and down (up even the you are at the top of the tree) will do wierd things. Sometimes
it will wrap sometimes the topmost item is unselectable.


Expected Results:
	navigating down the tree should scroll the view after the last visible item is reached.
I'm not sure what should happen when you hit up arrow at the topmost item. Currently Nova
does nothing.

Build Date & Platform Bug Found:
	This bug is XP and repro's on all platforms with the 1999110709 builds.
Attached file MacsBug stack trace
I forgot to mention this crashed my mac, I've attached the entire MacsBug report
Summary: select-scrolling with keyboard in tree view doesn't work right → [Tree]scrolling w/arrow keys unpredictable in tree
Marking [Tree], changed summary to (hopefully) better reflect main problem in
the description.
Assignee: hyatt → alecf
Target Milestone: M12
Alec wants all the scrolling bugs since he's fixing them as a group right now.
Status: NEW → ASSIGNED
ok, I fixed this for trees with no header row. there were some row index
corruption problems....there's something else I'm missing with trees that have
column headers (i.e. most trees)
Ahah! I've got the fix. Turns out EnsureRowIsVisible and IsValidRow both
expected zero-based values not row indicies.... in the case of trees with a
header (i.e. most trees) you got off by one, which just confused things.

Awaiting a code review from hyatt.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
whoo hoo... finally fixed.
It behaves normally now - no more invisible items selected, scrolling works as
expected, and so forth.
Status: RESOLVED → VERIFIED
this one is VERIFIED fixed, but there'll be more to come shortly...
verified with 1999111608 builds that is.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: