dynamic fit()

Fits and optionally centers the element into the window, or fitInfo if specified.

Source

fit() =>
    jsElement.callMethod('fit', []);