Hack to calculate category cell width.