Fix calculateAllViewElementWidths