davidnia1
08-16-2005, 02:15 PM
Hello,
changing the height="5" to height="${5}" gives different results...can anybody explain this?..
the following code produces expected behavior:
<canvas width="500" height="400">
<!-- top level view -->
<view width="400" height="300">
<stableborderlayout axis="y"/>
<!-- top border -->
<view width="${parent.width}" height="5" bgcolor="#000000"/>
<!-- middle section -->
<view name="_middle" width="${parent.width}" bgcolor="red">
</view>
<!-- bottom border -->
<view width="${parent.width}" height="5" bgcolor="#000000"/>
</view>
</canvas>
----------------------------------------------
the following code produces unexpected behavior:
<canvas width="500" height="400">
<!-- top level view -->
<view width="400" height="300">
<stableborderlayout axis="y"/>
<!-- top border -->
<view width="${parent.width}" height="${5}" bgcolor="#000000"/>
<!-- middle section -->
<view name="_middle" width="${parent.width}" bgcolor="red">
</view>
<!-- bottom border -->
<view width="${parent.width}" height="5" bgcolor="#000000"/>
</view>
</canvas>
changing the height="5" to height="${5}" gives different results...can anybody explain this?..
the following code produces expected behavior:
<canvas width="500" height="400">
<!-- top level view -->
<view width="400" height="300">
<stableborderlayout axis="y"/>
<!-- top border -->
<view width="${parent.width}" height="5" bgcolor="#000000"/>
<!-- middle section -->
<view name="_middle" width="${parent.width}" bgcolor="red">
</view>
<!-- bottom border -->
<view width="${parent.width}" height="5" bgcolor="#000000"/>
</view>
</canvas>
----------------------------------------------
the following code produces unexpected behavior:
<canvas width="500" height="400">
<!-- top level view -->
<view width="400" height="300">
<stableborderlayout axis="y"/>
<!-- top border -->
<view width="${parent.width}" height="${5}" bgcolor="#000000"/>
<!-- middle section -->
<view name="_middle" width="${parent.width}" bgcolor="red">
</view>
<!-- bottom border -->
<view width="${parent.width}" height="5" bgcolor="#000000"/>
</view>
</canvas>