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

Trevor Oldak updated XAP-482:
-----------------------------

    Description: 
Run the following xal to see the tablees sized to 100% width and height.


<xal xmlns="http://openxal.org/ui"; xmlns:xal="http://openxal.org/ui";>
        <scrollPane width="100%" height="100%">
            <label height="20px" text="Set width" width="100px" x="330px" 
y="0px"/>
            <table width="208px" x="330px" y="30px">
                <column>
                    <header text="Column #1" width="100px"/>
                </column>
                <column>
                    <header text="Column #2" width="100px"/>
                </column>
                <row>
                    <cell text="Row 1 Cell 1"/>
                    <cell text="Row 1 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 2 Cell 1"/>
                    <cell text="Row 2 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 3 Cell 1"/>
                    <cell text="Row 3 Cell 2"/>
                </row>
            </table>
            <label height="20px" text="Set height" width="100px" x="0px" 
y="140px"/>
            <table height="98px" x="100px" y="140px">
                <column>
                    <header text="Column #1" width="100px"/>
                </column>
                <column>
                    <header text="Column #2" width="100px"/>
                </column>
                <row>
                    <cell text="Row 1 Cell 1"/>
                    <cell text="Row 1 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 2 Cell 1"/>
                    <cell text="Row 2 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 3 Cell 1"/>
                    <cell text="Row 3 Cell 2"/>
                </row>
            </table>
            <label height="20px" text="No width" width="100px" x="100px" 
y="0px"/>
            <table x="100px" y="30px">
                <column>
                    <header text="Column #1" width="100px"/>
                </column>
                <column>
                    <header text="Column #2" width="100px"/>
                </column>
                <row>
                    <cell text="Row 1 Cell 1"/>
                    <cell text="Row 1 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 2 Cell 1"/>
                    <cell text="Row 2 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 3 Cell 1"/>
                    <cell text="Row 3 Cell 2"/>
                </row>
            </table>
            <label height="20px" text="No height" width="100px" x="0px" 
y="30px"/>
            <table height="98px" width="208px" x="330px" y="140px">
                <column>
                    <header text="Column #1" width="100px"/>
                </column>
                <column>
                    <header text="Column #2" width="100px"/>
                </column>
                <row>
                    <cell text="Row 1 Cell 1"/>
                    <cell text="Row 1 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 2 Cell 1"/>
                    <cell text="Row 2 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 3 Cell 1"/>
                    <cell text="Row 3 Cell 2"/>
                </row>
            </table>
        </scrollPane>
</xal>

  was:

<xal xmlns="http://openxal.org/ui"; xmlns:xal="http://openxal.org/ui";>
        <scrollPane width="100%" height="100%">
            <label height="20px" text="Set width" width="100px" x="330px" 
y="0px"/>
            <table width="208px" x="330px" y="30px">
                <column>
                    <header text="Column #1" width="100px"/>
                </column>
                <column>
                    <header text="Column #2" width="100px"/>
                </column>
                <row>
                    <cell text="Row 1 Cell 1"/>
                    <cell text="Row 1 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 2 Cell 1"/>
                    <cell text="Row 2 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 3 Cell 1"/>
                    <cell text="Row 3 Cell 2"/>
                </row>
            </table>
            <label height="20px" text="Set height" width="100px" x="0px" 
y="140px"/>
            <table height="98px" x="100px" y="140px">
                <column>
                    <header text="Column #1" width="100px"/>
                </column>
                <column>
                    <header text="Column #2" width="100px"/>
                </column>
                <row>
                    <cell text="Row 1 Cell 1"/>
                    <cell text="Row 1 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 2 Cell 1"/>
                    <cell text="Row 2 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 3 Cell 1"/>
                    <cell text="Row 3 Cell 2"/>
                </row>
            </table>
            <label height="20px" text="No width" width="100px" x="100px" 
y="0px"/>
            <table x="100px" y="30px">
                <column>
                    <header text="Column #1" width="100px"/>
                </column>
                <column>
                    <header text="Column #2" width="100px"/>
                </column>
                <row>
                    <cell text="Row 1 Cell 1"/>
                    <cell text="Row 1 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 2 Cell 1"/>
                    <cell text="Row 2 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 3 Cell 1"/>
                    <cell text="Row 3 Cell 2"/>
                </row>
            </table>
            <label height="20px" text="No height" width="100px" x="0px" 
y="30px"/>
            <table height="98px" width="208px" x="330px" y="140px">
                <column>
                    <header text="Column #1" width="100px"/>
                </column>
                <column>
                    <header text="Column #2" width="100px"/>
                </column>
                <row>
                    <cell text="Row 1 Cell 1"/>
                    <cell text="Row 1 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 2 Cell 1"/>
                    <cell text="Row 2 Cell 2"/>
                </row>
                <row>
                    <cell text="Row 3 Cell 1"/>
                    <cell text="Row 3 Cell 2"/>
                </row>
            </table>
        </scrollPane>
</xal>


> Widgets: Table: Table size incorrectly in a scrollPane
> ------------------------------------------------------
>
>                 Key: XAP-482
>                 URL: https://issues.apache.org/jira/browse/XAP-482
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets: Table/Tree/TreeTable
>            Reporter: Trevor Oldak
>            Priority: Critical
>
> Run the following xal to see the tablees sized to 100% width and height.
> <xal xmlns="http://openxal.org/ui"; xmlns:xal="http://openxal.org/ui";>
>         <scrollPane width="100%" height="100%">
>             <label height="20px" text="Set width" width="100px" x="330px" 
> y="0px"/>
>             <table width="208px" x="330px" y="30px">
>                 <column>
>                     <header text="Column #1" width="100px"/>
>                 </column>
>                 <column>
>                     <header text="Column #2" width="100px"/>
>                 </column>
>                 <row>
>                     <cell text="Row 1 Cell 1"/>
>                     <cell text="Row 1 Cell 2"/>
>                 </row>
>                 <row>
>                     <cell text="Row 2 Cell 1"/>
>                     <cell text="Row 2 Cell 2"/>
>                 </row>
>                 <row>
>                     <cell text="Row 3 Cell 1"/>
>                     <cell text="Row 3 Cell 2"/>
>                 </row>
>             </table>
>             <label height="20px" text="Set height" width="100px" x="0px" 
> y="140px"/>
>             <table height="98px" x="100px" y="140px">
>                 <column>
>                     <header text="Column #1" width="100px"/>
>                 </column>
>                 <column>
>                     <header text="Column #2" width="100px"/>
>                 </column>
>                 <row>
>                     <cell text="Row 1 Cell 1"/>
>                     <cell text="Row 1 Cell 2"/>
>                 </row>
>                 <row>
>                     <cell text="Row 2 Cell 1"/>
>                     <cell text="Row 2 Cell 2"/>
>                 </row>
>                 <row>
>                     <cell text="Row 3 Cell 1"/>
>                     <cell text="Row 3 Cell 2"/>
>                 </row>
>             </table>
>             <label height="20px" text="No width" width="100px" x="100px" 
> y="0px"/>
>             <table x="100px" y="30px">
>                 <column>
>                     <header text="Column #1" width="100px"/>
>                 </column>
>                 <column>
>                     <header text="Column #2" width="100px"/>
>                 </column>
>                 <row>
>                     <cell text="Row 1 Cell 1"/>
>                     <cell text="Row 1 Cell 2"/>
>                 </row>
>                 <row>
>                     <cell text="Row 2 Cell 1"/>
>                     <cell text="Row 2 Cell 2"/>
>                 </row>
>                 <row>
>                     <cell text="Row 3 Cell 1"/>
>                     <cell text="Row 3 Cell 2"/>
>                 </row>
>             </table>
>             <label height="20px" text="No height" width="100px" x="0px" 
> y="30px"/>
>             <table height="98px" width="208px" x="330px" y="140px">
>                 <column>
>                     <header text="Column #1" width="100px"/>
>                 </column>
>                 <column>
>                     <header text="Column #2" width="100px"/>
>                 </column>
>                 <row>
>                     <cell text="Row 1 Cell 1"/>
>                     <cell text="Row 1 Cell 2"/>
>                 </row>
>                 <row>
>                     <cell text="Row 2 Cell 1"/>
>                     <cell text="Row 2 Cell 2"/>
>                 </row>
>                 <row>
>                     <cell text="Row 3 Cell 1"/>
>                     <cell text="Row 3 Cell 2"/>
>                 </row>
>             </table>
>         </scrollPane>
> </xal>

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