You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-dev@incubator.apache.org by "Trevor Oldak (JIRA)" <xa...@incubator.apache.org> on 2007/12/10 20:12:43 UTC
[jira] Created: (XAP-549) Widgets: Menubar: dojo-style component
displays under circumstances
Widgets: Menubar: dojo-style component displays under circumstances
-------------------------------------------------------------------
Key: XAP-549
URL: https://issues.apache.org/jira/browse/XAP-549
Project: XAP
Issue Type: Bug
Components: Widgets: Menu/MenuBar/Toolbar
Reporter: Trevor Oldak
Priority: Minor
Run the following xal. Click the 'do it' button to make a menubar show up. The menu will be styled like the dojo component it's based off, not the XAP widget.
I can figure out how to simplify the code anymore and still have the bug show up.
<xal xmlns="http://openxal.org/ui/html">
<macro:macro xmlns:macro="http://openxal.org/core/macro" id="doit">
<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
<xm:replace-children select="id('main-panel')">
<verticalBoxPane pack="center" alignment="center" borderPosition="center">
<menuBar x="0px" y="0px" height="30px" backgroundColor="#C0C0C0" borderColor="#000000">
<menu text="Edit">
<popupMenu>
<menuItem text="Undo"/>
</popupMenu>
</menu>
</menuBar>
</verticalBoxPane>
</xm:replace-children>
</xm:modifications>
</macro:macro>
<rootPane>
<freePane height="100%" width="100%" id="main-panel">
<button x="0" y="0" height="30px" text="do it" onCommand="macro:doit.execute()"/>
</freePane>
</rootPane>
<defs xmlns="http://openxal.org/ui/html">
<popupMenu id="mypopupMenu" xmlns="http://openxal.org/ui/html">
<menuItem>
<popupMenu text="New" accessKey="n">
<menuItem text="Folder" image="../../../../images/Menus/Directory.gif"/>
<menuItem text="Text File" image="../../../../images/Menus/File.gif"/>
</popupMenu>
</menuItem>
</popupMenu>
</defs>
</xal>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.