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

Method layoutOuterShadows

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

Source from the content-addressed store, hash-verified

156 }
157
158 private layoutOuterShadows(): void {
159 const nativeView: NativeScriptUIView = <NativeScriptUIView>this.nativeViewProtected;
160 if (nativeView?.outerShadowContainerLayer) {
161 CATransaction.setDisableActions(true);
162
163 nativeView.outerShadowContainerLayer.bounds = nativeView.bounds;
164 nativeView.outerShadowContainerLayer.position = nativeView.center;
165
166 CATransaction.setDisableActions(false);
167 }
168 }
169
170 public setMeasuredDimension(measuredWidth: number, measuredHeight: number): void {
171 super.setMeasuredDimension(measuredWidth, measuredHeight);

Callers 1

updateBackgroundMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected