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

Method _getTransform

packages/main/src/TableVirtualizer.ts:217–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215 }
216
217 _getTransform() {
218 if (!this._table) {
219 return;
220 }
221
222 const firstRow = this._table.rows[0];
223 if (firstRow && firstRow.position !== undefined && firstRow.position > 0) {
224 const transform = firstRow.position * this.rowHeight;
225 return `translateY(${transform}px)`;
226 }
227 }
228
229 _onRowInvalidate(invalidationInfo: InvalidationInfo) {
230 if (invalidationInfo.name === "position") {

Callers 1

stylesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected