pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Jansen <iron...@gmail.com>
Subject TablePane.columnSpan
Date Tue, 12 Jul 2011 20:25:17 GMT
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

Mime
View raw message