The resource header was causing a lot of troubles (the text wrapping improperly, problems with vertical centering) so the code is a little bit complicated.
It's almost impossible to get multi-line header vertically centered at this moment using the DayPilot API. I will take a look at it. Meanwhile, you can use the following workaround: