Added property to only disable _flexibleHeight when certain properties are used.

This was breaking other attributed labels that don't use these properties.

Change-Id: If7e9e40273072d42003df56fe2db496cb10d0bcb