add calcOffset to drawinngmode