Preserve scroll location across panel switch