fixed introduced bug, more features to control text being truncated