adjust bubble height according to unit height.