Closed
Bug 22357
Opened 25 years ago
Closed 25 years ago
Menu should use implicit separators.
Categories
(Core :: XUL, enhancement, P3)
Core
XUL
Tracking
()
VERIFIED
WONTFIX
People
(Reporter: CodeMachine, Assigned: mikepinkerton)
Details
I've seen instances where you get separators with nothing below you. I think
Moz should automatically handle this situation properly, and also the one where
there are two separators together.
Basically this would involve changing:
<menu value="File"/>
<menupopup>
<menuitem value="New..."/>
<menuitem value="Close"/>
<menuseparator/>
<menuitem value="Save"/>
<menuitem value="Save As..."/>
<menuseparator/>
<menuitem value="Exit"/>
</menupopup>
</menu>
(graciously lifted from the XUL docs) to:
<menu value="File"/>
<menupopup>
<menugroup>
<menuitem value="New..."/>
<menuitem value="Close"/>
</menugroup>
<menugroup>
<menuitem value="Save"/>
<menuitem value="Save As..."/>
</menugroup>
<menugroup>
<menuitem value="Exit"/>
</menugroup>
</menupopup>
</menu>
It's a bit longer, and maybe you might know how to make it shorter, but anyway,
the point is that separators are implicit rather than explicit, that is, between
the groups. If one menu group happens to be empty, it generates no separator,
and there is no scope for multiple separators.
I've seen id attributes on menuseparators in navigator.xul, so I'm not sure
whether this provides a feature that my proposal couldn't achieve.
Updated•25 years ago
|
QA Contact: paulmac → sairuh
Comment 1•25 years ago
|
||
Sairuh, your chance to learn some XUL :-)
Updated•25 years ago
|
Assignee: trudelle → saari
Comment 2•25 years ago
|
||
reassigning to saari for consideration, cc hyatt.
Updated•25 years ago
|
Assignee: saari → hyatt
Target Milestone: M20
Comment 3•25 years ago
|
||
Taking this.
| Reporter | ||
Comment 4•25 years ago
|
||
The other option of course is to actually trash unneeded explicit separators,
which is probably easier to implement but I'm of the opinion a grouping scheme
is more logical.
Updated•25 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Updated•25 years ago
|
Assignee: hyatt → pinkerton
Status: ASSIGNED → NEW
| Assignee | ||
Comment 5•25 years ago
|
||
Taking menu/popup bugs.
| Assignee | ||
Comment 6•25 years ago
|
||
These are some good ideas, but we need explicit separators for style and we don't
like the idea of altering the content model implicitly.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL. XUL
component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: bugzilla → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•