I have screens that are generated at the run time. I am using a TileGroup
as a main container for such screens. When a screen construction is done I
am recalculating the total height of the TileGroup and change it. Here is
the code I am using for that:

private function resizeTileGroup():void
{
var maxH:int = 0;
for (var i:int=1;i<=mainWindow.rowCount;i++)
{
var elt:DisplayObject = mainWindow.getChildAt(i * mainWindow.columnCount -
mainWindow.columnCount);
maxH += elt.height;
}
mainWindow.height = maxH + mainWindow.verticalGap * mainWindow.rowCount;
}

I dont have any problem with the code itself, but when a user changes a
screen size by clicking on Restore down button this particular screen is
not wrapped properly.
Fields are overlapping each other. If I dont resize TiltGroup with the
above code then there is no problem with screen resizing. Any ideas, please?

Thanks

Reply via email to