Closed Bug 221435 Opened 21 years ago Closed 20 years ago

missing scrollbar in SELECT with 1 digit options where size attribute > 1

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 251586

People

(Reporter: e.gerber, Assigned: jag+mozilla)

References

()

Details

Attachments

(4 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6a) Gecko/20030926 Firebird/0.7+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6a) Gecko/20030926 Firebird/0.7+

Firebird does not show a scrollbar for SELECT menu with size attribute > 1 if
there are only one-digit (numeric) options.
Example:

<select size="2" id="test1">
  <option value="1" selected>1</option>
  <option value="2">2</option>
  <option value="3">3</option>
</select>

The following works:

<select size="2" id="test2">
  <option value="1" selected>a</option>
  <option value="2">2</option>
  <option value="3">3</option>
</select>

just like:

<select size="2" id="test3">
  <option value="1" selected>&nbsp;1</option>
  <option value="2">2</option>
  <option value="3">3</option>
</select>

but this does not (notice the spaces around '1'):

<select size="2" id="test4">
  <option value="1" selected> 1 </option>
  <option value="2">2</option>
  <option value="3">3</option>
</select>

Reproducible: Always

Steps to Reproduce:
1. create HTML document with SELECT menus as described above (or visit site
http://www.backroads.de/bugs/select_2003-10-07.htm)
2. watch the menus: samples 2 and 3 work, 1 and 4 don't




Expected Results:  
display scrollbar for SELECT where required
Attached image working fine with IE
Tested this on WINXP 
build: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206
Firefox/0.8

No scrollbars are present in any of the SELECT option for the 

IE shows all the scrollbars.
Luke Nowak - 25 February 2004

I have replicated this bug using Firefox 0.8 on Windows XP Pro. I then used the 
test page at the given link for some follow-up tests. I changed the code to 
include all the proper HTML tags to make the code well formed and the problem 
still existed. If you replace the spaces with nbsp entities, the problem goes 
away. However, all spaces are trimmed from the beginning and end of each option 
label if you don't use the nbsp entity.
Attached image ...
(Manan Pancholi & Oben Yapar) February 26, 2004

Successfully able to replicate the bug on Windows 2000 Professional with
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007
Firebird/0.7

Also, scrollbars are visible for any SELECT menu over Opera browser as seen in
the attachment file.
Assignee: firefox → jag
Component: General → XP Toolkit/Widgets
Product: Firefox → Browser
QA Contact: jrgmorrison
Version: unspecified → Trunk

*** This bug has been marked as a duplicate of 251586 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: