Its working now, as I said.
This was my code before:
label.text = myText;
label.UpdateNGUIText();
The problem was that I wanted the width of "Example text" and the calc method gave me the width (and height) of
"Example
text"
That was, because my label wasn't wide enough for the text. Now that I added these lines
NGUIText.rectWidth = int.MaxValue;
NGUIText.rectHeight = int.MaxValue;
The method calculates the width of the text as one line rather than breaking it up into multiple lines.