Hi,
I have a datapath that is set dynamically, and matches multiple elements.
However I'm unable to make the elements layout in the view.

Following is the simplest example that illustrates the problem.
All text elements in the "details" view overlay on top of each other.

All help is much appreciated.
-shishir


<canvas width="100%" height="50%" debug="true">
  <dataset name="ds">
    <mylists>
      <myelem>elem[1]# </myelem>
      <myelem>elem[2]# </myelem>
      <myelem>elem[3]# </myelem>
    </mylists>
  </dataset>
  <window width="100%" height="100%">
    <method event="oninit">
      this.details.setDatapath('ds:/mylists/myelem');
    </method>
    <view name="details" width="100%" height="50%">
      <text>
        <datapath xpath="text()" replication="resize"/>
      </text>
      <simplelayout axis="y"/>
    </view>
  </window>
</canvas>

Reply via email to