The macro modifies the column width of my tree
----------------------------------------------
Key: XAP-442
URL: https://issues.apache.org/jira/browse/XAP-442
Project: XAP
Issue Type: Bug
Components: Macros
Environment: Platform 4.5.4
Reporter: Xiaojing He
Priority: Critical
Desc
----------------
In the following sample app, the macro will be called by an invisible button at
its onCreated event. This macro will set expanded attribute of the row to true.
Once executes this sample, you will see the display area for the tree only has
half width of it should be.
My code
----------------
<xal xmlns="http://openxal.org/ui/html">
<macro:macro xmlns:macro="http://openxal.org/core/macro" id="close">
<xu:modifications xmlns:xu="http://openxal.org/core/xmodify">
<xu:set-attribute select="id('treeRow')">
<xu:attribute name="expanded" value="false"/>
</xu:set-attribute>
</xu:modifications>
</macro:macro>
<freePane width="1024px" height="768px">
<tree height="100px" width="180px" x="20px" y="30px">
<column/>
<row id="treeRow">
<cell id="treeCell" text="Item 1"/>
<row>
<cell text="Item 1.1"/>
<row>
<cell text="Item 1.1.1"/>
</row>
</row>
<row>
<cell text="Sub Tree Item 2"/>
</row>
</row>
<row>
<cell text="Tree Item 2"/>
</row>
</tree>
<button text=" fold tree" onCreate="macro:close.execute()"
visible="false" x="0px" y="0px"/>
</freePane>
</xal>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.