Widgets: Table: Column headers resize when table rows deleted
-------------------------------------------------------------
Key: XAP-216
URL: http://issues.apache.org/jira/browse/XAP-216
Project: XAP
Issue Type: Bug
Components: Macros, Widgets
Reporter: Trevor Oldak
In the given example:
Click the 'add row with macro' button a few times'.
Click 'clear table', and watch the table headers. They become permanently wider.
<PRE>
<xal xmlns="http://openxal.org/ui">
<macro:macro xmlns:macro="http://openxal.org/core/macro" id="addRow"
name="addRow">
<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
<xm:append select="id('messagesTable')">
<xal:row xmlns:xal="http://openxal.org/ui">
<xal:cell text="{0}"/>
<xal:cell text="{1}"/>
<xal:cell text="{2}"/>
</xal:row>
</xm:append>
</xm:modifications>
</macro:macro>
<macro:macro xmlns:macro="http://openxal.org/core/macro" id="removeRows"
name="removeRows">
<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
<xm:remove-element select="//table/row"/>
</xm:modifications>
</macro:macro>
<rootPane>
<verticalBoxPane>
<horizontalFlowPane borderPosition="north" width="800px">
<button text="Add a row with Macro"
onCommand="macro:addRow.execute('a','b','c')"/>
<button text="Clear Table"
onCommand="macro:removeRows.execute()"/>
</horizontalFlowPane>
<table id="messagesTable" height="500px" width="500px"
rowHeight="100px">
<column>
<header text="Topic"/>
</column>
<column>
<header text="Type"/>
</column>
<column>
<header text="Content" width="300px"/>
</column>
</table>
</verticalBoxPane>
</rootPane>
</xal>
</PRE>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira