Fixed a bug where cell-width-NaN classes got added for smaller width cells
Added scaling based on cell width for text and html cells