Closed
Bug 5975
Opened 26 years ago
Closed 26 years ago
Sizing of SELECT element incorrect when inside <box> </box>
Categories
(Core :: XUL, defect, P3)
Tracking
()
VERIFIED
FIXED
M9
People
(Reporter: cmanske, Assigned: rods)
Details
Make a simple combobox using the SELECT tag:
<select>
<optgroup>
<option>Normal</option>
<option>Heading2</option>
</optgroup>
</select>
If this put inside a XUL file and dislayed in Apprunner, the width of the
combobox when closed is correctly calculated to accomodate the longest line
of text AND the down-arrow part of the control, thus the entire string
("Heading2" in this case) is visible.
When the above sample is placed surrounded by a <box> </box> tag, the width
is underdetermined. It looks like its not compensating for the down arrow
portion. This happens when you put similar SELECT items inside a toolbar.
Eric: you may want to check other layout details inside the <box>. I believe
there might be problems when using CSS margin attributes (I'll file more bugs
as I find them.)
Updated•26 years ago
|
Assignee: evaughan → kmcclusk
Comment 1•26 years ago
|
||
Select tags don't seem to be calculating there size correctly. If you make a
select tag with a width of 100% it will be bigger than the window by the width
of its down arrow. Perhaps you are forgetting to subtract the down arrows size?
below is a test case:
-E
// to reproduce
<html>
<body>
<select style="width:100%">
<optgroup>
<option>Normal</option>
<option>Heading2</option>
</optgroup>
</select>
</body>
</html>
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M8
Comment 2•26 years ago
|
||
The test case above does not display inside a combobox unless a form element is
put around the select. If the select is placed inside a form element then it
does resize correctly when native widgets are enabled. When a gfx-combo box is
used it makes the combox really wide.
Updated•26 years ago
|
Target Milestone: M8 → M9
Comment 3•26 years ago
|
||
Moving to M9
Updated•26 years ago
|
Assignee: kmcclusk → rods
Status: ASSIGNED → NEW
Comment 4•26 years ago
|
||
Rod, here is another one to try with the latest gfx-based combo box.
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•26 years ago
|
||
Fixed. Was not calculating the width correctly, works for GFX.
verified fixed on (viewer w/ gfx, apprunner with native widgets)
1999-08-13-08 RedHat Linux 6.0 (GNOME/enlightenment)
1999-08-13-08 WinNT 4.0 sp5
1999-08-13-08 MacOS 8.51
You need to log in
before you can comment on or make changes to this bug.
Description
•