fix isOrigin in item
account for margin when calcing offset
tick version