Prevent a drop-down flicker when switching between pages.