I'm using subfloats rather extensively, and want to use hyperref to refer to the subfloats.
It works, sort-of. In the below example, when clicking the hyperref to the first figure, the pdf goes nicely to the top-left of the figure. However, when clicking the reference to the second figure, the pdf goes to near the bottom of the second figure, such that most of the figure is out of view.

Hyperref goes to the light green crosses, which is fine for 1.1a), but I want it to go to the blue cross for `1.1b)
Below is my MWE, which I build by running pdflatex twice using texlive 2012.
\documentclass[a4paper,11pt]{report}
\usepackage{chngcntr}
\counterwithin{figure}{chapter}
\usepackage{graphicx}
\usepackage{caption,subfig}
\usepackage{hyperref}
\begin{document}
\chapter{First chapter}
This will be a reference to the first part of Figure~\ref{fig:firstfigure}
This will be a reference to the second part of Figure~\ref{fig:secondfigure}
\begin{figure}[ht]
\centering
\subfloat[Some subfloat caption for the first figure goes here.]{\label{fig:firstfigure}\includegraphics[width=0.4\textwidth]{./placeholder}}\hspace{0.15\textwidth}
\subfloat[And some other caption for the second subfigure goes here.]{\label{fig:secondfigure}\includegraphics[width=0.4\textwidth]{./placeholder}}
\caption{\protect\subref{fig:firstfigure} is the first figure. \protect\subref{fig:secondfigure} is the second figure.}\label{fig:somefigures}
\end{figure}
\end{document}
Any insight in how to fix the hyperref behaviour for the second subfigure is much appreciated!
hyperrefsupport of thesubfigpackage is buggy, this is a known problem. See also: http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure – Jun 19 '13 at 20:03subcaption, and I think I got it working properly. I'll post the MWE of the solution I found in a moment. – IceRabbit Jun 19 '13 at 20:11