Added ability to truncate long toolitem labels