Fix x offset bug on partial re-renders