| 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); |