MCPcopy Create free account
hub / github.com/angular/components / _applySize

Function _applySize

src/cdk-experimental/column-resize/resizable.ts:315–324  ·  view source on GitHub ↗
(sizeInPixels: number, previousSize?: number)

Source from the content-addressed store, hash-verified

313 }
314
315 private _applySize(sizeInPixels: number, previousSize?: number): void {
316 const sizeToApply = Math.min(Math.max(sizeInPixels, this.minWidthPx, 0), this.maxWidthPx);
317
318 this.resizeStrategy.applyColumnSize(
319 this.columnDef.cssClassFriendlyName,
320 this.elementRef.nativeElement!,
321 sizeToApply,
322 previousSize,
323 );
324 }
325
326 private _applyMinWidthPx(): void {
327 this.resizeStrategy.applyMinColumnSize(

Callers

nothing calls this directly

Calls 3

minMethod · 0.45
maxMethod · 0.45
applyColumnSizeMethod · 0.45

Tested by

no test coverage detected