This content has been marked as final. Show 3 replies
Could you please provide some sample code which causes the problem, and
explain what is going wrong with the percentages?
"aginternet" <email@example.com> wrote in message
> Hi all,
> Using 1.5 - I'm having difficulty getting any object I place within a form
> within a viewstack to give me a height of 100%. Static heights work fine,
> the percentages hate me. I've cheked all my nested objects to make sure
> nothing is cutting me off. What's going on here?
> Aaron G
> Philadelphia, PA
Here's a simple app that illustrates my problem. Any control that I put within a form that's within a viewstack won't stretch to 100% height. What am I doing wrong here?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx=" http://www.macromedia.com/2003/mxml">
<mx:ViewStack id="testStack" height="100%">
<mx:Form label="testForm" height="100%">
<mx:DataGrid id="datagrid1" height="100%">
<mx:DataGridColumn headerText="Column 1" columnName="col1" />
<mx:DataGridColumn headerText="Column 2" columnName="col2" />
Thanks for any help you can give.
I found the solution! For anyone else out there making the same mistake as me, here's the fix. You simply need a container that is NOT a form. The datagrid works fine if I put it in a canvas, set the x and y to 0, and the height to 100%.
Being a relative newbie at this I'm assuming that forms only like form items and it not a catch all default form.