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

Method layoutNativeView

packages/core/ui/page/index.ios.ts:416–427  ·  view source on GitHub ↗
(left: number, top: number, right: number, bottom: number)

Source from the content-addressed store, hash-verified

414 }
415
416 public layoutNativeView(left: number, top: number, right: number, bottom: number): void {
417 const nativeView = this.nativeViewProtected;
418 if (!nativeView) {
419 return;
420 }
421
422 const currentFrame = nativeView.frame;
423 // Create a copy of current view frame
424 const newFrame = CGRectMake(currentFrame.origin.x, currentFrame.origin.y, currentFrame.size.width, currentFrame.size.height);
425
426 this._setNativeViewFrame(nativeView, newFrame);
427 }
428
429 public _modifyNativeViewFrame(nativeView: UIView, frame: CGRect) {
430 //

Callers

nothing calls this directly

Calls 1

_setNativeViewFrameMethod · 0.45

Tested by

no test coverage detected