issue #20734: Hide detail menu if panel is hidden.