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