[Panels] Use a better parameter for clipping panel when hiding