Avoiding labels to be positioned off screen
Merge branch 'label_positions'