do not allow scroll on a box if everything is visible