patch up shadow when expanding search panel