Open Bug 280014 Opened 18 years ago Updated 7 years ago

combobox dropdown vertical scrollbar unreachable if it's wider than the screen

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

People

(Reporter: jlb.for, Unassigned)

References

()

Details

(Keywords: helpwanted)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

when a listbox has at least one item with a very long length, the vertical
scrollbar becomes unreachable (listbox size can be larger than screen)
listbox right side should be kept at screen right.
an horizontal scrollbat would be usefull in these cases.



Reproducible: Always

Steps to Reproduce:
1.load a listbox with a very long text
2.open the listbox
3. or go to the url above and select the first listbox



Expected Results:  
display a reduced size listbox droppdown list (adjust right side of dropdown to
screen size).

no workarround, excepted using another browser.
Bug 265614 is in the same general area (drop-down widths).  

By the way, you can work round this by using the keyboard/scrollable mouse to go
down the list.
(In reply to comment #1)
> Bug 265614 is in the same general area (drop-down widths).  
> 
> By the way, you can work round this by using the keyboard/scrollable mouse to go
> down the list.

Bug 265614 rather refers to a bad calculation of the scrolldown width when the
vertical scrollbar comes on. for large texts, if the dropdown width is not
sufficient to display the whole text, then an horizontal scollbar should be
added, which could be done by adding listbox::SetHorizontalExtent(maxtextwidth)
function to the source code. I hope that this will be corrected in a future
version. 

For listboxes with many items, using the mouse wheel is not very fast to jump to
the needed item, and it's not smart to have a listbox part going outside of the
display... Thanks for reply.
Maybe we should just set the dropdown menu width to the button width, always?
Assignee: firefox → nobody
Status: UNCONFIRMED → NEW
Component: General → Layout: Form Controls
Ever confirmed: true
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → layout.form-controls
Version: unspecified → Trunk
Yes, this is an idea, assuming that in case of longer items you add an
horizontal scrollbar to the dropdown (sethorizontalextent).
The button width?  Which button?  I assume we're talking about comboboxes, not
listboxes, by the way?
(In reply to comment #5)
> The button width?  Which button?  I assume we're talking about comboboxes, not
> listboxes, by the way?

Yes, comboboxes. By "button" I meant the width of the combobox.
The border-width to be precise.
People seem to pretty commonly set "width" on the <select> to something too
small (that is, I commonly see dropdowns that are wider than the display area of
the combobox).

I'm ok with constraining the popup size somehow, but constraining to the width
of the <select> is too small...
I am very sorry to write this in that thread, but I think that my email address
has been captured by a virus sender.
I will destroy that address soon.
can somebody have a look at what to do to avoid this ? 
forums seems to be the starting point for these practices.
ciao.
If we used our normal popup positioning code and constrained to the size of the screen, that would work....
Keywords: helpwanted
Neil do you think that would be somewhat feasible here?
Summary: listbox vertical scrollbar unreachable → combobox dropdown vertical scrollbar unreachable if it's wider than the screen
Do you mean something like calling the code in nsMenuPopupFrame::SetPopupPosition but for the select frame? Does this only affect the width and not the height? If so, it sounds like it would be easier just to reduce the size of the select popup by the amount it is offscreen, or move it by that amount.

Comboboxes limit the height to no more than half of screen, so yeah.  This is width only.

Popups have to do the same thing, so it would be really nice if we could share the code somehow...
Duplicate of this bug: 207533
Duplicate of this bug: 427866
Attached file Test case
Duplicate of this bug: 292761
Duplicate of this bug: 488683
Hardware: x86 → All
Duplicate of this bug: 1003190
Is there still a chance, that this will be fixed someday?
Duplicate of this bug: bug#883895
You need to log in before you can comment on or make changes to this bug.