Closed
Bug 251586
Opened 20 years ago
Closed 20 years ago
select tag with multiple and size set create lists with out scrollbars if the option tag labels are all numeric.
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: dwhite, Assigned: roc)
References
()
Details
(4 keywords)
Attachments
(3 files, 1 obsolete file)
1.13 KB,
text/html
|
Details | |
1.23 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
asa
:
approval-aviary+
asa
:
approval1.7.5+
asa
:
approval1.8a4+
|
Details | Diff | Splinter Review |
128 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
creating a list box using <select name="list" multiple size="5"> or <select
name="list" multiple="muiltiple" size="5"> and with options that are all numeric
as in <option value="one">1</option> produces a list box without a scrollbar.
The same select tag with the option lables changed to text as in <option
value="one">one</option> produces the expected scrolling list box.
Reproducible: Always
Steps to Reproduce:
1. Create a form with a select tag using multiple and size and provide only
numeric options.
2. View the page in Firefox
Actual Results:
List boxes without scrollbars
Expected Results:
List boxes with scrollbars
I have viewed this bug in IE and Netscape 7.1 and all list boxes appear
properly. I have tried this on Firefox 0.9.2 and 0.9.1 both on Windows XP on 2
separate computers and it appears the same way on both.
Reporter | ||
Comment 1•20 years ago
|
||
The attached HTML page has 3 list boxes the first shows up correctly (with
scrollbars) the second and third do not (no scrollbars). This page reders that
same on multiple WindowsXP boxes and in Firefox 0.9.1 and 0.9.2
Comment 2•20 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707
Firefox/0.9.0+
CONFIRMED ->NEW
Updated•20 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•20 years ago
|
||
Also see this with: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a3)
Gecko/20040715
--> Browser
Assignee: firefox → general
Component: General → Browser-General
Product: Firefox → Browser
QA Contact: firefox.general → general
Version: unspecified → Trunk
Comment 4•20 years ago
|
||
additional:
if the FIRST(important) <option> is not a letter than it does not work.
I tried space , dot , questionmark etc,
Comment 5•20 years ago
|
||
After more testing:
Works in:
Mozilla suite 1.7.1 with modern
Does NOT work in:
Todays Mozilla suite 1.8a3 with modern nor with classic
Mozilla suite 1.7.1 with classic
Todays Firefox branch build
It doesnt help to update the code with valid (current testcase has errors) that
validates.
Severity: normal → major
Keywords: testcase
Reporter | ||
Comment 6•20 years ago
|
||
Attachment #153310 -
Attachment is obsolete: true
Comment 7•20 years ago
|
||
> Todays Mozilla suite 1.8a3 with modern nor with classic
That was a smoketest blocker today; it's fixed.
Please retest tomorrow's builds.
Keywords: qawanted
Comment 8•20 years ago
|
||
(In reply to comment #7)
> Please retest tomorrow's builds.
Modern now works as expected. But I still see this in trunk build 20040716 with
classic theme. Can attach screenshot if you want.
As mentioned before, this doesnt work on the AVIARY branch nor with 1.7.1 and
classic.
Keywords: classic
Comment 9•20 years ago
|
||
According to comment 7 this was a smoketest blocker, but its still broken with
classic theme, trunk build 20040922, nominating for blocking1.8a4.
Flags: blocking1.8a4?
Comment 10•20 years ago
|
||
Roc or Neil, can you help here. This probably blocks 1.8a4.
Assignee: general → roc
Flags: blocking1.8a4? → blocking1.8a4+
Comment 11•20 years ago
|
||
Someone decided that an area that is less than the size of a scrollbar should
never have scrollbars. In Modern, this means that an area less than 30 pixels
wide will never have a vertical scrollbar, while in Classic the cut-off point is
36 pixels, at least in my build (this may vary depending on native theming).
This scheme was really designed for small scrollable frames (note: it doesn't
even work very well in Classic because the minimum scrollbar length is twice its
width, so the horizontal scrollbar disappears before the vertical one does, then
makes a brief reappearance; in Modern however we can easily squash a scrollbar
down to 12 pixels long even though they are 15 pixels wide!); unfortunately it
is also being applied to selects where it doesn't make any sense because the
dimensions are constrained from the inside rather than the outside.
Assignee | ||
Comment 12•20 years ago
|
||
OK, this is probably mine. Need to hack nsGfxScrolLFrame. I'll take a look tonight.
Assignee | ||
Comment 13•20 years ago
|
||
I can't reproduce with my GTK2 theme. Are there any Seamonkey themes I can
download that will do this?
Comment 14•20 years ago
|
||
This test case (URL field) shows in both Classic and Modern for me.
Keywords: classic
Assignee | ||
Comment 15•20 years ago
|
||
you are a genius!
Assignee | ||
Comment 16•20 years ago
|
||
This should fix it.
I'm a bit concerned about regressions though. This code is fragile.
Assignee | ||
Comment 17•20 years ago
|
||
Comment on attachment 160029 [details] [diff] [review]
fix
David, maybe you could take a look at this. I don't know if the aXY changes are
needed, but they're obviously correct. The main change is:
- if (size >= aSbSize) {
+ if (size >= 0) {
Which looks more like the right code, and behaves correctly in my tests ...
Attachment #160029 -
Flags: superreview?(dbaron)
Attachment #160029 -
Flags: review?(dbaron)
Assignee | ||
Comment 18•20 years ago
|
||
Resizing the window containing this testcase shows what happens when a very
small overflow:auto DIV is manipulated. It looks good to me, with the patch.
The only problem I can see is that if you make the window simultaneously
narrower and taller, then the scrollbar oscillates from being horizontal to
being vertical and back again. Both are correct; there's only room for one
scrollbar and no real rule to say which one whould be present. I'd like to
favour vertical and the current code tries to do that, but not hard enough. The
current code is too messy to fix properly easily. We really need the HTML
scrollbar refactoring I've been working too slowly on...
Comment on attachment 160029 [details] [diff] [review]
fix
> // not enough room? Yes? Return true.
r+sr=dbaron, although I think the number of negatives in this comment is
incorrect.
Attachment #160029 -
Flags: superreview?(dbaron)
Attachment #160029 -
Flags: superreview+
Attachment #160029 -
Flags: review?(dbaron)
Attachment #160029 -
Flags: review+
Comment 20•20 years ago
|
||
Comment on attachment 160029 [details] [diff] [review]
fix
a=asa for 1.8a4 checkin. Thanks for the quick turnaround.
Attachment #160029 -
Flags: approval1.8a4+
Comment 21•20 years ago
|
||
Is this something that also could go into the aviary branch? Or is it too risky?
Assignee | ||
Comment 22•20 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 23•20 years ago
|
||
This could go in Aviary/1.7 if desired.
Updated•20 years ago
|
Flags: blocking-aviary1.0?
Comment 24•20 years ago
|
||
Verified with Mozilla trunk build 2004-09-27-17-trunk (1.8a4 rc)
Status: RESOLVED → VERIFIED
Comment 25•20 years ago
|
||
Comment on attachment 160029 [details] [diff] [review]
fix
a=asa for aviary and 1.7 checkin.
Attachment #160029 -
Flags: approval1.7.x+
Attachment #160029 -
Flags: approval-aviary+
Comment 26•20 years ago
|
||
This doesn't appear to have landed on the aviary or 1.7.x branches. Time is
short for the aviary release.
Updated•20 years ago
|
Flags: blocking-aviary1.0?
Comment 28•20 years ago
|
||
*** Bug 221435 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•