Create a relative- and a fixed-size constraint row
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Canvas width="100%" height="100%">
<mx:constraintRows>
<mx:ConstraintRow id="row1" height="50%" />
<mx:ConstraintRow id="row2" height="100" />
</mx:constraintRows>
<mx:Button label="Button 1" top="row1:0" bottom="row1:0" />
<mx:Button label="Button 2" top="row2:0" bottom="row2:0" />
</mx:Canvas>
</mx:Application>
Related examples in the same category