This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Public Method Questions API


Allows the setting of a context height for scrollable passages with fluid heights, e.g. 100%, 60%, etc.

By default, scrollable passages use the window's viewport height as the context for calculating fluid heights. This method is useful if you don't want the context height to be the window height; but rather, the height of another element, e.g. a wrapping div with a dynamic height.

If the string "content" is passed, the scrollable passages will stretch to the height of the content within, i.e. the scrollbars will be removed.


  • height float | integer | string

Return value

None (undefined).

Was this article helpful?