SOS-1896 fix misaligned legend borders
SOS-1896 S/F
SOS-1896 Random line break