I have a large DataGrid that takes the top 80% of the Canvas
I want to place two smaller items below it (at about 90% of
the height of
However, I am finding that only width, and height can be
Absolute position does not work well in this case, since the
needs to scale relative to it's container.
Layout constraints also seem to be in absolute pixels.
Ideally, I would like the constraint editor to be able to
constraints relative to other compentents embedded in the
Right now, one can only specify placement relative the walls
container component. (this would allow relative gap spacing,
Dr. Yechezkal Gutfreund
ACE for Mobile Devices
Using 80% of the Canvas for the DataGrid will leave little
room for anything else unless the Canvas is very tall.. You could
try adding a <mx:Spacer height="10%" between the DataGrid and
the smaller items. You might in fact, set the height of the Spacer
to be 100% so that it fills whatever room is left between the
DataGrid and the items below it.
Personally, I think you should try using the positioning
styles. While they do give you absolute margins, they also allow
the component to grow and shrink with the space.
For example, if you can live with 20 pixel margins on the
top, left, and right sides of the DataGrid, and want to leave 50
pixels at the bottom for the other items, then do: