Update to use CGRectGet methods to change size and frame of panel.