calc Container's grid layout autosize