I have a split rectangle node, and I would like either for the entire node to be a certain height, with the splits spread equally, or each nodepart to be a certain height. I have the following code, in which only the first part is stretched, how can I apply this to all nodeparts?
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,positioning}
\begin{tikzpicture}[auto,
rect/.style={
rectangle split,
rectangle split parts=4,
draw=black,
rounded corners,
text width=7cm,
text height=3cm
}]
% Split Rectangle
\node [rect] {
First Item
\nodepart{two} Second Item
\nodepart{three} $\vdots$
\nodepart{four} Last Item
};
\end{tikzpicture}
\end{document}
minimum width
requirements but anyminimum height
will be ignored. But you can useinner sep
, not so useful though. If necessary, switch tomatrix
node.