[panels] make sure auto-hide works when a panel is disabled and enabled (on entering and exiting Scale or Expo)
Merge pull request #2193 from autarkper/auto-hide-fix

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