Set position and dimensions of panel.