:github_url: hide # IrregularGridContainer **Inherits:** [Container](https://docs.godotengine.org/en/stable/classes/class_container.html) Usefull [GridContainer](https://docs.godotengine.org/en/stable/classes/class_gridcontainer.html) for [ExpandableButton](./ExpandableButton.md) ## Description Arranges its children deppending of theirs minimum size and strech ratio in full rows. If theirs minimum sizes are equal then grid is formed. Each row is being left with additional free space for [ExpandableButton](./ExpandableButton.md) to expand into, which does not mean that this space is hollow because it is splitted into sizes of all children in corresponding row. See [Control.size_flags_stretch_ratio](https://docs.godotengine.org/en/stable/classes/class_control.html#class_control_member_size_flags_stretch_ratio) and [Control.get_combined_minimum_size](https://docs.godotengine.org/en/stable/classes/class_control.html#class_control_method_get_combined_minimum_size) for more details. You might want to use [GridContainer](https://docs.godotengine.org/en/stable/classes/class_gridcontainer.html) or [SpanningTableContainer](https://github.com/Magodra/SpanningTableContainer). ## Properties | | | | |--------------------------------------------------------------------------|----------------------------------------------|-----------| | [bool](https://docs.godotengine.org/en/stable/classes/class_bool.html) | [shrink_last_row](#property_shrink_last_row) | ``false`` | | [float](https://docs.godotengine.org/en/stable/classes/class_float.html) | [spacing](#property_spacing) | ``0.0`` | --- ## Property Descriptions #### [bool](https://docs.godotengine.org/en/stable/classes/class_bool.html) **shrink_last_row** = ``false`` - *void* **set_shrink_last_row**( value\: [bool](https://docs.godotengine.org/en/stable/classes/class_bool.html) ) - [bool](https://docs.godotengine.org/en/stable/classes/class_bool.html) **is_last_row_shrinked**( ) If ``true`` lenght of each element in last row is based on previous one. #### [float](https://docs.godotengine.org/en/stable/classes/class_float.html) **spacing** = ``0.0`` - *void* **set_spacing**( value\: [float](https://docs.godotengine.org/en/stable/classes/class_float.html) ) - [float](https://docs.godotengine.org/en/stable/classes/class_float.html) **get_spacing**( ) Defines size of spaces between elements and rows. **Note:** this might be theme property in the future.