adjusted size of main panel