public override void SetSize(int width, int height)
{
base.SetSize(width, height);
//---------------------------------
if (gridBox != null)
{
//adjust grid size
gridBox.SetSize(width - 10, height - 10);
this.dockspaceController.SetSize(width, height);
}
//---------------------------------
}
//-----