calculateComponentDimensions

Calculates component dimensions based on grid layout