Consider the example below. Why is the text not vertically centered?
How do I get this working? I want to get this working with a node assigned to a draw object, because else I need to modify my entire figure ;-)
Credits for the fitting node goes to this post.
MWE
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fit}
\makeatletter
\tikzset{
fitting node/.style={
inner sep=0pt,
fill=none,
draw=none,
reset transform,
fit={(\pgf@pathminx,\pgf@pathminy) (\pgf@pathmaxx,\pgf@pathmaxy)}
},
reset transform/.code={\pgftransformreset}
}
\makeatother
\begin{document}
\begin{tikzpicture}[ultra thick]
\draw [rounded corners=15pt] (0,-2.0) rectangle ++(13.5,1.0) node[fitting node] {\strut Test Title};
\end{tikzpicture}
\end{document}

