I am trying to create a layout in flex using mxml, the layout contains the Canvas and Box component. The layout should always be such that the Box is located on the lower border of the application and has a fixed height, while the canvas fills the remaining area of ββthe scene and does not overlap with the box.
My MXML is as follows:
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"
width="100%" height="100%" layout="absolute" clipContent="false" verticalGap="0">
<mx:Canvas width="100%" height="100%" />
<mx:Box width="100%" height="30"></Box>
</mx:Module>
I tried using dynamic linking to set the height on the canvas (height = "{this.stage.height - 30}"), but it gives incorrect results.
Is there an easy way to achieve what I get after setting the height using ActionScript?
source
share