Closed Bug 26079 Opened 25 years ago Closed 25 years ago

Need way to ensure selection is visible

Categories

(Core :: XUL, defect, P3)

defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: slamm, Assigned: hyatt)

References

Details

In the sidebar customize dialog you can reorder items with up/down buttons. If 
you have a bunch of panels, it is easy to move the selected item off the bottom 
of the visible view. I see that trees have EnsureRowIsVisible(), but I am unable 
to call this from JavaScript.

This would also come in handy when you add panels in the customize dialog. In 
that case, new panels may be added off the bottom of what is visible.
Blocks: 24106
Status: NEW → ASSIGNED
Target Milestone: M15
Hey, alec, didn't you implement this for mail/news?

yep. EnsureElementIsVisible()
http://lxr.mozilla.org/seamonkey/source/rdf/content/public/idl/XULTreeElement.idl

This is a dupe of a FIXED bug against me. marking worksforme since I don't feel
like hunting it down.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
by the way, that call takes any XUL element in the tree (but not HTML element)
and makes it visible - <treerow>, <treecell>, <treeitem> or even <titledbutton>
Ok, great. I missed that in my first search for it.
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: paulmac → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.