[JENKINS-22686] Don't use fixed pixel count for label distance.

Instead, use a distance of 0.5x the width/height of the label.

This improves appearance in combination with JENKINS-22688 for
different font sizes.