MCPcopy Create free account
hub / github.com/UI5/webcomponents / onStepResize

Method onStepResize

packages/fiori/src/Wizard.ts:468–478  ·  view source on GitHub ↗

* Handles resize in order to: * (1) sync steps' scroll offset and selection * (2) adapt navition step header * @private

()

Source from the content-addressed store, hash-verified

466 * @private
467 */
468 onStepResize() {
469 this.width = this.getBoundingClientRect().width;
470 this.contentHeight = this.getContentHeight();
471
472 if (this._prevWidth !== this.width || this.contentHeight !== this._prevContentHeight) {
473 this._closeRespPopover();
474 }
475
476 this._prevWidth = this.width;
477 this._prevContentHeight = this.contentHeight;
478 }
479
480 attachStepsResizeObserver() {
481 this.stepsDOM.forEach(stepDOM => {

Callers

nothing calls this directly

Calls 2

getContentHeightMethod · 0.95
_closeRespPopoverMethod · 0.95

Tested by

no test coverage detected