Tanner's law in the case of partial wetting