fix UI bug in inventory screen

scrolling past a unit with a long name would permanently set the
font size to small.