<menu> XULElement without a <menupopup> child Element are not displayed correctly

NEW
Unassigned

Status

()

Core
XUL
13 years ago
10 years ago

People

(Reporter: Didier Moraine, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1

The <menu> XULElement are computed with a negative height when they don't have any child <menupopup> element.

Reproducible: Always

Steps to Reproduce:
1. Go to http://www.hevanet.com/acorbin/xul/menubar.xul with Firefox 1.5B2
2. Do the same with Firefox 1.0.7
3. Check that 2 menubars are not displayed correctly with Firefox 1.5B2

Actual Results:  
Check that 2 menubars are not displayed correctly with Firefox 1.5B2


I was able to display my <menu> elements by adding empty <menupopup> childs.
(Reporter)

Comment 1

13 years ago
Created attachment 200991 [details]
<menu> displayed by Firefox 1.5B2
(Reporter)

Comment 2

13 years ago
Created attachment 200992 [details]
<menu> displayed by Firefox 1.0.7
This happens because of the added css rule in xul.css:
menu:empty {visibility:collapse}
This was added in bug 295711.
Blocks: 295711

Updated

10 years ago
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.