I have a Flex SWF file containing a DataGrid embedded in a
site. The navigation and logo bar are outside of the SWF.
What I want
is for the DataGrid to fill 100% of the remaining height.
height="100%" doesn't work since the calculation doesn't seem
factor in that some space is already taken up by the logo
area. So if
the logo area is 100px high, the grid is 100px off the screen
What is the easiest way to solve this problem? I could use
to calculate the available height and set the height of the
JS. I would imagine this problem has already been solved by
people before, so I thought I would ask first before starting
If you set the height of the DataGrid to 100%, the DataGrid
will occupy the 100% space of its parent container. Can you please
make sure the height property of the DataGrid's parent/parents
is/are set to 100% or the required value.
Hope this helps.