[alignment] js fix for vertically centered arrows