Enum HorizontalSizeStyle Stay organized with collections Save and categorize content based on your preferences.
HorizontalSizeStyle
An enum that sets how widgets fill the space of a column.
Available for Google Chat apps and Google Workspace add-ons.
To call an enum, you call its parent class, name, and property. For example,CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE.
Properties
| Property | Type | Description |
|---|---|---|
FILL_AVAILABLE_SPACE | Enum | Sizes theWidget to fill the available horizontal space of aColumn. If theother column has more space, the widget can fill the space beyond the space of its own column.Default. |
FILL_MINIMUM_SPACE | Enum | Resizes theWidget to fill the least amount of horizontal space in aColumn.The minimum space is based on the size of the widget. If the widget is smaller than the spaceof the column, it doesn't expand to fill the space. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-03 UTC.