Closed
Bug 317258
Opened 19 years ago
Closed 19 years ago
no API to scroll to well defined position for XUL:listbox
Categories
(Toolkit :: UI Widgets, enhancement)
Toolkit
UI Widgets
Tracking
()
RESOLVED
INVALID
People
(Reporter: a.herz, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) Gecko/20051107 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) Gecko/20051107 Firefox/1.5
I need to request the scroll position of an listbox/tree/.... and restore
the position after a relogin of the user.
I have API to determine/set the scrollpostion of list elements
Reproducible: Always
Comment 1•19 years ago
|
||
It's not clear what you're asking for. There certainly is API for scrolling listbox, for example http://xulplanet.com/references/elemref/ref_listbox.html#prop_scrollToIndex
Reporter | ||
Comment 2•19 years ago
|
||
Hi,
I need the 'pixel' (exact) scroll position of the listbox.
I develope a XUL remote application. If the user press the F5
or the user login to the application I must restore the GUI
to the last state.
The problem is, that I don't know whats the current state (scrollposition)
of the listbox is! And I can't set the scroll position of the listbox.
Comment 3•19 years ago
|
||
listbox doesn't seem to allow smooth scrolling, that is the top of the box is always (at least in most cases) aligns with the top of one of the lines.
So getIndexOfFirstVisibleRow / scrollToIndex should work for you.
Component: General → XUL Widgets
Product: Firefox → Toolkit
QA Contact: general → xul.widgets
Version: unspecified → Trunk
Comment 4•19 years ago
|
||
Yes, listboxes only scroll lines, not pixels.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•