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 19:07:43 UTC

[jira] Updated: (XAP-548) Widgets: menuBar: menubar with a width throws errors

     [ https://issues.apache.org/jira/browse/XAP-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trevor Oldak updated XAP-548:
-----------------------------

    Description: 
The following xal complains about the width attribute of the menu
<xal xmlns="http://openxal.org/ui/html">  
  <rootPane>
    <freePane height="100%" width="100%" id="main-panel">
      <menuBar x="0px" y="0px" width="500px" height="30px" backgroundColor="#C0C0C0" borderColor="#000000">
        <menu text="Edit">
          <popupMenu>
            <menuItem text="Undo"/>
          </popupMenu>
        </menu>
      </menuBar>
    </freePane>
  </rootPane>

</xal>

  was:
Run the following xal:
<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" width="500px" 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>

</xal>


An error will be thrown when the "do it" button is clicked

        Summary: Widgets: menuBar: menubar with a width throws errors  (was: Widgets: menuBar: Inserting a menu with a set width into a page throws errors)

A different issue was found that is more directly related.

> Widgets: menuBar: menubar with a width throws errors
> ----------------------------------------------------
>
>                 Key: XAP-548
>                 URL: https://issues.apache.org/jira/browse/XAP-548
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets: Menu/MenuBar/Toolbar
>            Reporter: Trevor Oldak
>
> The following xal complains about the width attribute of the menu
> <xal xmlns="http://openxal.org/ui/html">  
>   <rootPane>
>     <freePane height="100%" width="100%" id="main-panel">
>       <menuBar x="0px" y="0px" width="500px" height="30px" backgroundColor="#C0C0C0" borderColor="#000000">
>         <menu text="Edit">
>           <popupMenu>
>             <menuItem text="Undo"/>
>           </popupMenu>
>         </menu>
>       </menuBar>
>     </freePane>
>   </rootPane>
> </xal>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.