implements getComponentPos