# Adapting rowSpan to Contents in TileLayout for React

## Environment

<table>
    <tbody>
	    <tr>
	    	<td>Product Version</td>
	    	<td>7.0.2</td>
	    </tr>
	    <tr>
	    	<td>Product</td>
	    	<td>Progress® KendoReact TileLayout</td>
	    </tr>
    </tbody>
</table>

## Description

I want to adapt the `rowSpan` value in a TileLayout based on the height of its contents. Currently, I have set the `colSpan` and `rowSpan` to a static number, but this results in white space when there is less data in the grid.

## Solution

To dynamically adjust the `rowSpan` value based on the content height, create a function that obtains the Grid height and recalculates it based on your needs.

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/layout/tilelayout-adapt-rowspan-content-dynamically/source.txt)
