Please, consider the following MWE:
\documentclass[preview,border=3mm,tikz]{standalone}
\usetikzlibrary{shapes.multipart}
\tikzset{%
base/.style args={#1/#2/#3}{%
shape=rectangle split,
draw, inner sep=1mm, outer sep=0mm,
rectangle split parts=2,
rectangle split part fill={white,gray!20},
rectangle split draw splits=false,
rectangle split part align={left, right},
node contents={\nodepart{one} #2
\nodepart{two} #3},
}
}% end of tikzset
\begin{document}
\begin{tikzpicture}[every node/.append style={minimum width=24mm}]
\node (c1) [base=22mm/one line/two\\ line ];
\end{tikzpicture}
\begin{tikzpicture}[every node/.append style={text width=22mm}]
\node (c1) [base=22mm/one line/two\\ line ];
\end{tikzpicture}
\end{document}
In the first case the text is correct aligned and as expected in the second part is not broken into two lines. However, replacing minimum width with text width nullify left/right aligning of text in nodes' parts (and enable break text in more lines).
Is this a feature? How to convince TikZ that it will right align text in the second node part?




varwidthinto node style and also discover new one, for which I will write answer. At evening I will ask on chat room, how to check, if some bug is already reported (or I need to read all reports). – Zarko Mar 06 '17 at 09:58