Closed
Bug 7025
Opened 25 years ago
Closed 25 years ago
SELECT scrolling when selectedIndex changes
Categories
(Core :: Layout: Form Controls, enhancement, P3)
Core
Layout: Form Controls
Tracking
()
VERIFIED
FIXED
M14
People
(Reporter: martin.honnen, Assigned: rods)
Details
(Whiteboard: I have the fix in my tree)
Attachments
(2 files)
One of the most missed features of nn<=4 SELECT element is that it is not scrolling to display the selected element when javascript sets
selectObject.selectedIndex
Now m5 does some scrolling but when MULTIPLE is set the scrolling is stopping one or two OPTION elements above the (newly) selected OPTION.
I guess neither HTML4 nor DOM level 1 prescribe that the selected element has to be displayed but if you are doing some scrolling I don't understand why it is not done to display the selected element.
So
<SELECT NAME="aSelect">
and
document.formName.aSelect.selectedIndex = 8;
shows the the OPTION with index 8 as does
<SELECT NAME="aSelect" SIZE="3">
but
<SELECT NAME="aSelect" SIZE="3" MULTIPLE>
scrolls but stops to show OPTIONs with index 5, 6, 7.
I suggest to consistently scroll so that the OPTION to which
selectObject.selectedIndex
gets set becomes visible.
Updated•25 years ago
|
Assignee: vidur → pollmann
Comment 1•25 years ago
|
||
Another SELECT bug. Enjoy, Eric! :-)
Updated•25 years ago
|
Whiteboard: [MAKINGTEST] christian@wenz.org
Comment 2•25 years ago
|
||
Updated•25 years ago
|
Whiteboard: [MAKINGTEST] christian@wenz.org → [TESTCASE] SELECT scrolling when selectedIndex changes not implemented correctly for MULTIPLE
Comment 3•25 years ago
|
||
Overview Description:
scrolling after changing selectedIndex of a SELECT box with size>1 does not work
when SELECT box is MULTIPLE
Steps to Reproduce:
1) load the attachment
2 [details] [diff] [review]) watch both select boxes, as selectedIndex is set to 4 (=entry 5) for both
Actual Results:
MULTIPLE box (on the left) scrolls so that entries 3 and 4 are visible; entry 5
is marked (visible if you scroll manually)
not MULTIPLE box (on the left) scrolls so that entries 4 and 5 are visible;
entry 5 is marked.
Expected Results:
both SELECT boxes to show entry #5.
Build Date & Platform Bug Found:
M7 & 1999071108 build. (Win32)
Updated•25 years ago
|
Assignee: pollmann → rods
Component: DOM Level 0 → HTML Form Controls
OS: Windows 95 → All
Hardware: PC → All
Target Milestone: M13
Comment 4•25 years ago
|
||
Rod, can you take a look at this one? Seems like an enhancement/feature,
nothing too pressing... Thanks!
Assignee | ||
Updated•25 years ago
|
Target Milestone: M14
Assignee | ||
Comment 5•25 years ago
|
||
updated milestone
Assignee | ||
Comment 6•25 years ago
|
||
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Whiteboard: [TESTCASE] SELECT scrolling when selectedIndex changes not implemented correctly for MULTIPLE → I have the fix in my tree
Assignee | ||
Comment 7•25 years ago
|
||
I have the fix in my tree
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 8•25 years ago
|
||
fixed - It does it now on incemental reflows, maybe not the bet solution, but it
is the best for now.
You need to log in
before you can comment on or make changes to this bug.
Description
•