WidgetContentAdjustHeight

WidgetContentAdjustHeight

Strategy for adjusting height of widget to the content of the widget. This prevents scrollbars to be displayed in the widget. Scrollbars on the page level is, if required, used.

Constructor

new WidgetContentAdjustHeight()

Methods

_isLoading()

Checks if the widget is currently in a loading state. Use this check to prevent calculating the widget height while the loader is active. Calculating height during loading can result in a premature shrink (e.g., 0 height) because the content hasn't been rendered yet.