Having had a lot of fun getting the text background to work ok on my per pix title bars (it seems the text background doesn't want to be the same height as the actual titlebar, regardless of the content margins), I now find that it doesn't fit the maximised title bar (which uses the same image as the non-maximised titlebar).
Any expert out there know what might be going wrong?