I don't understand why the code below doesn't work.

It's supposed to be two black boxes, each with a red border.

The second black box isn't positioned correctly relative to its parent.

Do I have the syntax wrong?



<canvas width="600" height="400">
  <simplelayout axis="x"/>

  <view bgcolor="red" width="100" height="100">
    <view bgcolor="black"
          width="${parent.width-10}"
          height="${parent.height-10}"
          x="${parent.x+5}"
          y="${parent.y+5}"/>
  </view>

  <view bgcolor="red" width="100" height="100">
    <view bgcolor="black"
          width="${parent.width-10}"
          height="${parent.height-10}"
          x="${parent.x+5}"
          y="${parent.y+5}"/>
  </view>

</canvas>
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to