fixes overflow problem when hovering on foldable panels and tabs #2889