Hide hover preview onresize

This is at least a partial fix for #3570.