Add calculated-rows/cols attribute