Fix hiding of pan controls if not set to show.