MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / requestLayout

Method requestLayout

packages/core/ui/core/view/index.ios.ts:82–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 public requestLayout(): void {
83 this._privateFlags |= PFLAG_FORCE_LAYOUT;
84 super.requestLayout();
85
86 const nativeView = this.nativeViewProtected;
87 if (nativeView && nativeView.setNeedsLayout) {
88 nativeView.setNeedsLayout();
89 }
90
91 if (this.viewController && this.viewController.view !== nativeView) {
92 this.viewController.view.setNeedsLayout();
93 }
94 }
95
96 public measure(widthMeasureSpec: number, heightMeasureSpec: number): void {
97 const measureSpecsChanged = this._setCurrentMeasureSpecs(widthMeasureSpec, heightMeasureSpec);

Callers 15

_setNativeImageMethod · 0.45
onRoleChangedMethod · 0.45
refreshLayoutsMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
setLocalValueMethod · 0.45
setCssValueMethod · 0.45
setFuncMethod · 0.45
performLayoutFunction · 0.45
textViewDidChangeMethod · 0.45
showTextMethod · 0.45
_updateActionBarMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected