Oh, I see that the correct position Y is obtained if only the anchor is set to Upper, if Middle or Lower then the wrong position is issued.