added method that applies attributes to label in the context of a view of certain height