UIPanel panel = this.GetComponent<UIPanel>();
Debug.Log("Resizing Panel");
panel.bottomAnchor.target = BottomBarBackground.transform;
panel.bottomAnchor.Set(1,0);
panel.topAnchor.target = TopBar.transform;
panel.topAnchor.Set(0, 1);
panel.RebuildAllDrawCalls();