Resize properly the settings panel