[attributedlabel] Fix alignment bug caused by using the incorrect enum.

Closes #510.