Example:
<dataset name="myData">
<table>
<row>
<value>abc</value>
</row>
<row>
<value>abcdefg</value>
</row>
</table>
</dataset>
<Table name="myTable" apath="myData:/table" ....>
<Header>
... //works
</Header>
<rows>
<datapath xpath="row/" pooling="true" />
<handler name="ondata">
if(this.subviews.length > 0) {
return;
}
var rowDP = this.datapath.dupePointer();
if(rowDP.selectChild()) {
var i = 1;
do {
var dp = "value[" + i + "]";
var cellInstance = new
global["Cell"](this,{datapath:dp, bgcolor:0xffffff});
i++;
} while(rowDP.selectNext());
}
</handler>
</rows>
</Table>
<class name="Cell" bgcolor="${parent.bgcolor}"
width="${textComponent.width}">
<attribute name="text" value="$path{'text()'}"/>
<MyText name="textComponent" text="${parent.text}"
/>
</class>
<class name="MyText" extends="text">
<attribute name="resize" value="true"/>
</class>
It's a table with one column. So the first row with cell "abc" needs
for example a width of 10. The other cell from row two needs more space e.g. 20
--> the width of the table is correct but the width of the cell from the
first row is still 10. And before I switched to 3.3.3 it works.
I hope my description isn't to difficult....:-|
Thanks!
Regrads,
shed
--
Ein Service von http://www.sms.at
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user