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/03/07 15:58:24 UTC

[jira] Created: (XAP-326) Widgets: Table: Header-less table collapses to 0 width in a tabPane

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.


[jira] Commented: (XAP-326) Widgets: Table: Header-less table collapses to 0 width in a tabPane

Posted by "Trevor Oldak (JIRA)" <xa...@incubator.apache.org>.
    [ 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.


[jira] Updated: (XAP-326) Widgets: Table: Header-less table collapses to 0 width in a tabPane

Posted by "James Margaris (JIRA)" <xa...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/XAP-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Margaris updated XAP-326:
-------------------------------

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

> 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: Table/Tree/TreeTable
>            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.