Pierre,

According to the javadoc comments for the class, the behaviour you see
is intended.  (Although not all of the following components are placed
into the same cell)
http://pivot.apache.org/2.0/docs/api/org/apache/pivot/wtk/TablePane.html

I raised a related issue recently
https://issues.apache.org/jira/browse/PIVOT-768

Chris

On 13 July 2011 03:25, Pierre Jansen <[email protected]> wrote:
> Hi,
>
> is it intended that all components in a TablePane row which come after a
> component with columnSpan > 1, are placed into the same table cell? As an
> example, I have the following BXML:
>
> <TablePane styles="{verticalSpacing:20, showHorizontalGridLines:true,
>             horizontalSpacing:20, showVerticalGridLines:true, padding: 5}">
>         <columns>
>             <TablePane.Column width="-1"/>
>             <TablePane.Column width="-1"/>
>             <TablePane.Column width="-1"/>
>         </columns>
>
>         <TablePane.Row height="-1">
>             <Label TablePane.columnSpan="2" text="Col 1"
> styles="{backgroundColor:'red'}"/>
>             <Label text="Col 3" styles="{backgroundColor:'blue'}"/>
>         </TablePane.Row>
>
>         <TablePane.Row height="-1">
>             <Label text="Col 1" styles="{backgroundColor:'red'}"/>
>             <Label text="Col 2" styles="{backgroundColor:'green'}"/>
>             <Label text="Col 3" styles="{backgroundColor:'blue'}"/>
>         </TablePane.Row>
>     </TablePane>
>
> The results are as in the attached screenshot. I would've expected that the
> second label in the first row would be placed in it's own cell in the 3rd
> column (where the cursor is in the screenshot). If the observed behavior is
> as intended, how would I go about getting my expected outcome?
>
> (Note that this was observed in release 2.0).
>
> Regards,
>
> Pierre
>

Reply via email to