This is driving me nuts. The "Job5" and "Job6" text is slightly verticaly higher than the rest of text.
I'm suspecting the "inner sep", but I need that for the fit.
How can I re-adjust the text?
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{fit}
\begin{document}
\begin{tikzpicture}[auto,
singlejob/.style = {rectangle, minimum height = 1cm, minimum width = 2cm, fill=blue!20, thick, outer sep=0pt, inner sep=0pt, align=center, anchor=mid, text centered},
doublejob/.style = {rectangle, minimum height = 1cm, minimum width = 4.1cm, fill=blue!20, thick, inner sep = 0pt, align=center, anchor=mid, text centered}
]
\matrix[column sep=0.1cm, row sep=0.1cm, ampersand replacement=\& ] {
\node[rectangle, minimum height = 1cm, minimum width = 1cm ] { $Resc_1$ };\&
\node[draw, singlejob] {$Job_1$};\& \node[draw, singlejob] {$Job_2$};\&
\node[draw, singlejob] {$Job_3$};\& \node[draw, singlejob] {$Job_4$};\\
\node[rectangle, minimum height = 1cm, minimum width = 1cm ] { $Resc_2$ };\&
\node[singlejob] (j51) {}; \& \node[singlejob] (j52) {}; \&
\node[singlejob] (j61) {}; \& \node[singlejob] (j62) {}; \\
};
\node[draw,doublejob] (outer) [fit=(j51) (j52)] {$Job_5$};
\node[draw,doublejob] (outer) [fit=(j61) (j62)] {$Job_6$};
\end{tikzpicture}
\end{document}

Smaller example (added by Andrew Stacey). The problem appears to be to do with how the fit library expands its nodes:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fit}
\begin{document}
\begin{tikzpicture}
\node[draw,inner sep=0pt,fit={(0,0) (1,-2)}] (a) {a};
\node[draw,minimum width=1cm,minimum height=2cm,anchor=north west] (b)
at (1.5,0) {a};
\draw[ultra thick,red] (a.base) -- (b.base);
\end{tikzpicture}
\end{document}


fitlibrary and so came up with a smaller example. I edited it in (since it's just another example and not an "answer" by any stretch of the imagination). Hope that's okay. – Andrew Stacey Oct 26 '12 at 14:21label=center:<text>for the node text in the fitted node. – Jake Oct 26 '12 at 14:31