More correct way of calculating vertical offset in drawing timeline view.