[ 
https://issues.apache.org/jira/browse/XAP-326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478847
 ] 

Trevor Oldak commented on XAP-326:
----------------------------------

I found a workaround:
Give the table headers in columns, set them to the desired width and set 
visible to false. It will give the same visual effect and allow the user to 
switch tabs.

> Widgets: Table: Header-less table collapses to 0 width in a tabPane
> -------------------------------------------------------------------
>
>                 Key: XAP-326
>                 URL: https://issues.apache.org/jira/browse/XAP-326
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets
>            Reporter: Trevor Oldak
>
> Run the following example:
> <xal xmlns="http://openxal.org/ui";>
>     <tabPane width="800px" height="600px" backgroundColor="#CCCCCC">
>         <tab text="foo">
>             <table width="300px" height="200px">
>                 <column><header text="foo" width="100px"/></column>
>                 <row><cell text="bar"/></row>
>             </table>
>         </tab>
>         <tab text="bar">
>             <table width="300px" height="200px">
>                 <row><cell text="far" width="100px"/></row>
>             </table>
>         </tab>
>     </tabPane>
>     
> </xal>
> Click the 'bar' tab. The table displays, though the cell's width is ignored 
> (changing this to label fixes the width issue but causes other problems). 
> Click the 'foo' tab again and then click the 'bar' tab again. The table has 
> collapsed. horizontally

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

Reply via email to