MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / onMeasure

Method onMeasure

packages/core/ui/core/view/index.android.ts:940–946  ·  view source on GitHub ↗
(widthMeasureSpec: number, heightMeasureSpec: number)

Source from the content-addressed store, hash-verified

938 }
939
940 public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void {
941 const view = this.nativeViewProtected;
942 if (view) {
943 view.measure(widthMeasureSpec, heightMeasureSpec);
944 this.setMeasuredDimension(view.getMeasuredWidth(), view.getMeasuredHeight());
945 }
946 }
947
948 public onLayout(left: number, top: number, right: number, bottom: number): void {
949 const view = this.nativeViewProtected;

Callers 1

measureMethod · 0.95

Calls 4

setMeasuredDimensionMethod · 0.95
getMeasuredWidthMethod · 0.80
getMeasuredHeightMethod · 0.80
measureMethod · 0.45

Tested by

no test coverage detected