Fix search panel for different navigation alignments.

Change-Id: Iae544a568ed9b62d278d886d9d03a66a1b2049db