Q:

North-West Coordinate dependent on margin?

I have the following code (The documentclass is taken from here):
\documentclass{Thesis}
\usepackage{tikz}
\definecolor{RoyalRed}{RGB}{157,16,45}
\usepackage{lipsum}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\renewcommand\headrulewidth{0pt}
\fancyhead[LE]
{\begin{tikzpicture}[remember picture,overlay]
\fill[green] ([xshift=1.5cm]current page.north west) rectangle (\paperwidth,1cm);%
\fill[red] (current page.north west) rectangle (0cm,1cm);%
\node[anchor=west] at (0,1.5cm) {\bfseries \color{black}{\leftmark}};
\node[anchor=west] at ([yshift=-0.608cm]current page.north west) {\bfseries \color{black}{Page \thepage}};
 \end{tikzpicture}
}

\begin{document}
\chapter{Test Chapter}
\section{Test Section}    
\lipsum[1-4]
\end{document}

Where I want to have a ribbon in the header that goes from one corner of the page (the one on the top left) to the end of the page, at an offset of 1 cm. It used to work perfectly fine until I replaced MikTex with Tex Live. Now it looks like this:

Instead of going all the way up, it has a white space between the page margin and the ribbon. Also, is the "north west" option dependent on the margin or it should go to the 0,0 coordinate of the page regardless of the geometry?
Edit: The code for the Thesis.cls can be found here: http://pastebin.com/UJjpkysu
Anyone, any suggestion?

A:

The best answer to this question is probably: use a different class. Or at least use the most up to date version. If you do that you'll probably need to figure out how to use scrlayer-scrpage to set the headers.  (That class has a bit of a history by the way. Be careful about speaking to Johannes_B about it though, he may suffer a heart attack.)
That said, the specific culprit in your version of the class is the vmargin package, which is an old package for setting margins, and is known to be problematic. Normally you'd be better off with using the geometry package for modifying margins and page sizes. Exactly what vmargin does that interferes with TikZ's pagenodes I don't know, but the easiest fix is to remove that package and the \setmarginsrb block.

