dynamic refit()

Equivalent to calling resetFit() and fit(). Useful to call this after the element, the window, or the fitInfo element has been resized.

Source

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