That was dubious code before. Adjust X once by half the difference of pixmap.getWidth() and getWidth(). Y equally. UserInterfaceDimensions are wrong here and above (libGdx) concerning better separation.