Fix up panel size allocation