Fix scrollbar visibility issue when calculating width of table