i2 Notebook SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/notebook-sdk > dialog > IDialogAutoHeightSize

    dialog.IDialogAutoHeightSize interface

    A size for a dialog window that has a preset width and a height that fits its content.

    Signature:

    interface IDialogAutoHeightSize 
    

    Introduced: version 1.10

    Remarks

    The dialog's height follows the height of the content that it hosts, and changes as the content changes. The height is at least a small minimum, and at most the 'large' size (approximately the size of the viewport); content that is taller than that scrolls.

    Either the dialog determines the size of the content, as with a preset or explicit dimensions, or the content determines the size of the dialog, as it does here. The content must therefore determine its own height. Content whose height depends on the height of the dialog, such as a root element with height: 100% or a height in vh units, keeps the dialog at its current height.

    Properties

    Property Modifiers Type Description
    height readonly 'auto' Gets the value that makes the height of the dialog fit its content.
    width readonly DialogSize Gets the preset that sets the width of the dialog.
    In this article
    Back to top © N. Harris Computer Corporation