SOS-1896 fix misaligned legend borders

https://issues.liferay.com/browse/SOS-1896