How come the two blocks have a different height? What should be changed in \hole definition in order to have the same height?
\documentclass[10pt,lmodern,handout]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamercolor{block title}{bg=blue!20}
\setbeamercolor{block body}{bg=blue!5}
\newcommand\hole[1]{%
\alt<handout>{\invisible<1->{#1}}{#1}%
}
\setbeamertemplate{navigation symbols}{}
%--------------------
\begin{document}
%--------------------
\begin{frame}
\frametitle{Some title}
\framesubtitle{Some subtitle}
Some text.
\begin{block}{A block}
Text:
%
\begin{align*}
ax=b
\end{align*}
%
\end{block}
\begin{block}{A block}
\hole{Text:
%
\begin{align*}
ax=b
\end{align*}
%
}
\end{block}
Why is there a difference in the two blocks' height? How to get rid of that?
\end{frame}
%---------------%
\end{document}
%---------------%


%after the closing brace of the\hole? – MaxNoe Jan 16 '15 at 16:29\visibleor\invisibleintroduces it. Try with\begin{block}{A block}\visible<1->{Text:\begin{align*}ax=b\end{align*}}\end{block}or\begin{block}{A block}\invisible<1->{Text:\begin{align*}ax=b\end{align*}}\end{block}without spaces at all and compare with the first block. – Ignasi Jan 16 '15 at 17:53\invisiblecommand. If you use\onlyinstead (in OP's original code), no extra space is added (but of course this is not achieving the desired result of invisibility). – Herr K. Jan 16 '15 at 17:57