I am just starting to use LiquidStage and have been able to get it to do most things that I need, but I have buttons placed at the bottom right corner of a DataGrid. The buttons need to move when the DataGrid changes in height. This change in height often occurs because the number of rows being displayed changes.
I have used a DynamicPinPoint to return the bottom right corner of the data grid, and this works very well when the window is resized, but if the DataGrid content changes the DynamicPinPoint function is not getting called. Is there something I can do with a resize event when the content in the DataGrid changes?
The following is my DynamicPinPoint code:
addChild(associateBtns);
var assocCorner:Point = associateGridCorner();
associateBtns.x = assocCorner.x - associateBtns.buttonsWidth;
associateBtns.y = assocCorner.y + 5;
var assocPoint:DynamicPinPoint = new DynamicPinPoint(this, associateGridCorner);
assocPoint.attach(associateBtns);
=======
private function associateGridCorner() : Point {
var botX:Number = associateGrid.x + associateGrid.width;
var botY:Number = associateGrid.y + associateGrid.height;
return(new Point(botX, botY));
}