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

Method storeStepScrollOffsets

packages/fiori/src/Wizard.ts:420–425  ·  view source on GitHub ↗

* Stores the scroll offsets of the steps, * e.g. the steps' starting point. * * **Note:** the disabled ones has negative offsets. * @private

()

Source from the content-addressed store, hash-verified

418 * @private
419 */
420 storeStepScrollOffsets() {
421 this.stepScrollOffsets = this.slottedSteps.map(step => {
422 const contentItem = this.getStepWrapperByRefId(step._id);
423 return contentItem.offsetTop + contentItem.offsetHeight;
424 });
425 }
426
427 /**
428 * Handles user click on steps' tabs within the header.

Callers 1

onAfterRenderingMethod · 0.95

Calls 1

getStepWrapperByRefIdMethod · 0.95

Tested by

no test coverage detected