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

Trevor Oldak updated XAP-210:
-----------------------------

    Description: 
This is related to issue 162, though 162 is closed because the issue has 
changed.
A table such as this:
                                <table id="messagesTable">
                                        <column>
                                                <header text="Topic        "/>
                                        </column>
                                        <column>
                                                <header text="Type         "/>
                                        </column>
                                        <column>
                                                <header text="Content      "/>
                                        </column>
                                        <row>
                                                <cell text="a" 
backgroundColor="#FF0000"/><cell text="b"/><cell text="c"/>
                                        </row>
                                </table>

Displays fine by itself.

However, this:

<xal xmlns="http://openxal.org/ui";>
<horizontalFlowPane width="500px">
<table id="messagesTable">
    <column>
        <header text="Topic "/>
    </column>
    <column>
        <header text="Type "/>
    </column>
    <column>
        <header text="Content "/>
    </column>
    <row>
        <cell text="a" backgroundColor="#FF0000"/><cell text="b"/><cell 
text="c"/>
    </row>
</table>
<label text="foo" height="100px"/>
</horizontalFlowPane>
</xal>

Shows that the table collapses without a specified height


  was:
This is related to issue 162, though 162 is closed because the issue has 
changed.
A table such as this:
                                <table id="messagesTable">
                                        <column>
                                                <header text="Topic        "/>
                                        </column>
                                        <column>
                                                <header text="Type         "/>
                                        </column>
                                        <column>
                                                <header text="Content      "/>
                                        </column>
                                        <row height="50px">
                                                <cell height="25px" text="a" 
backgroundColor="#FF0000"/><cell text="b"/><cell text="c"/>
                                        </row>
                                </table>

Displays fine by itself.

However, this:

                        <horizontalFlowPane borderPosition="center" 
backgroundColor="#FF0000">
                                
                                <table id="messagesTable">
                                        <column>
                                                <header text="Topic        "/>
                                        </column>
                                        <column>
                                                <header text="Type         "/>
                                        </column>
                                        <column>
                                                <header text="Content      "/>
                                        </column>
                                        <row height="50px">
                                                <cell height="25px" text="a" 
backgroundColor="#FF0000"/><cell text="b"/><cell text="c"/>
                                        </row>
                                </table>
                                <label text="foo" height="100px"/>
                        </horizontalFlowPane>

Shows that the table collapses without a specified height



Fixed an issue with the sample xal.

> Widgets: Table: Table height 0 if unspecified in horizontalFlowPane
> -------------------------------------------------------------------
>
>                 Key: XAP-210
>                 URL: https://issues.apache.org/jira/browse/XAP-210
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets: Layouts
>            Reporter: Trevor Oldak
>            Priority: Minor
>
> This is related to issue 162, though 162 is closed because the issue has 
> changed.
> A table such as this:
>                               <table id="messagesTable">
>                                       <column>
>                                               <header text="Topic        "/>
>                                       </column>
>                                       <column>
>                                               <header text="Type         "/>
>                                       </column>
>                                       <column>
>                                               <header text="Content      "/>
>                                       </column>
>                                       <row>
>                                               <cell text="a" 
> backgroundColor="#FF0000"/><cell text="b"/><cell text="c"/>
>                                       </row>
>                               </table>
> Displays fine by itself.
> However, this:
> <xal xmlns="http://openxal.org/ui";>
> <horizontalFlowPane width="500px">
> <table id="messagesTable">
>     <column>
>         <header text="Topic "/>
>     </column>
>     <column>
>         <header text="Type "/>
>     </column>
>     <column>
>         <header text="Content "/>
>     </column>
>     <row>
>         <cell text="a" backgroundColor="#FF0000"/><cell text="b"/><cell 
> text="c"/>
>     </row>
> </table>
> <label text="foo" height="100px"/>
> </horizontalFlowPane>
> </xal>
> Shows that the table collapses without a specified height

-- 
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