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 "James Margaris (JIRA)" <xa...@incubator.apache.org> on 2007/03/27 23:01:32 UTC

[jira] Updated: (XAP-216) Widgets: Table: Column headers resize when table rows deleted

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

James Margaris updated XAP-216:
-------------------------------

    Component/s:     (was: Other widgets)
                 Table/Tree/TreeTable

> Widgets: Table: Column headers resize when table rows deleted
> -------------------------------------------------------------
>
>                 Key: XAP-216
>                 URL: https://issues.apache.org/jira/browse/XAP-216
>             Project: XAP
>          Issue Type: Bug
>          Components: Table/Tree/TreeTable
>            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.
> <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>

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