make sure auto-hide works when a panel is disabled and enabled ...

...(on entering and exiting Scale or Expo)

This addresses #2188.