Fix search panel hiding on Window resize.