adjust shouldExpand behavior to prevent text getting cut off