Open Bug 406412 Opened 12 years ago Updated 12 years ago

XUL: Menulist items labels are shortened, though there's enough space to display full labels

Categories

(Core :: XUL, defect, trivial)

x86
Windows XP
defect
Not set
trivial

Tracking

()

People

(Reporter: telega, Unassigned)

References

Details

(Keywords: regression)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b1) Gecko/2007110811 Firefox/3.0b1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b1) Gecko/2007110811 Firefox/3.0b1

When fixed width is specified for <menulist> element, the menu labels in drop-down list are shortened ("100" -> "1..."), though there's enough space to display full labels. This happens in FF 3.x, the same <menulist> is displayed correctly in FF 2.x.

Reproducible: Always

Steps to Reproduce:
1.Open test.xul file in FF 3.x:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <hbox>
  <menulist width="60">
    <menupopup>
      <menuitem label="100"/>
      <menuitem label="200"/>
    </menupopup>
  </menulist>
  </hbox>
</window>
2.See that selected item in menulist is displayed correctly (not shortened)
3.Click to open drop-down list.
4.See that items in drop-down list are shortened.
Actual Results:  
Items in drop-down list are shortened.

Expected Results:  
They should be displayed fully.
Severity: minor → trivial
Component: Extension Compatibility → XP Toolkit/Widgets: Menus
Product: Firefox → Core
QA Contact: extension.compatibility → xptoolkit.menus
Version: unspecified → Trunk
Regression range for this is http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&date=explicit&mindate=2006-05-04+06%3A00&maxdate=2006-05-04+13%3A00
Bug 313388 could have caused this.
Blocks: 313388
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
The bug happens also in FF 2.x, if set menulist width in the above test.xul to 50. In that case menulist shows selected value successfully, but when drop-down list is opened it shows only "..." instead of values.
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: xptoolkit.menus → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.