Added getTopOffset option