[Tex/LaTex] Fix vertical alignment in beamer

beamergraphicsvertical alignment

I am using a beamer frame in which the top has alternating list items, and the bottom has a picture. The problem is that because of the different number of rows for each item, the picture changes vertical position as I move between list items, as I show in the following code. Does anyone know how to "stick" it in place, at the bottom?

\documentclass{beamer}
\begin{document}
  \begin{frame}[t]{System overview}
  \begin{minipage}{\textwidth}
    \begin{itemize}
      \item<1|only@1> item1 (a single row)
      \item<2|only@2> item2 \\ has 2 rows
      \item<3|only@3> item3
    \end{itemize}
  \end{minipage}
  \vfill
  \begin{minipage}{\textwidth}
    \centering
    \includegraphics[scale=0.65]{picture.jpg}
  \end{minipage}
\end{frame}
\end{document}

Best Answer

Assign a defined height to the top minipage:

\documentclass{beamer}
\begin{document}
  \begin{frame}[t]{System overview}
  \begin{minipage}[t][0.5\textheight][t]{\textwidth}
    \begin{itemize}
      \item<1|only@1> item1 (a single row)
      \item<2|only@2> item2 \\ has 2 rows
      \item<3|only@3> item3
    \end{itemize}
  \end{minipage}
  \vfill
  \begin{minipage}{\textwidth}
    \centering
    \includegraphics[scale=0.65]{picture.jpg}
  \end{minipage}
\end{frame}
\end{document}