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

Method layoutNativeView

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

Source from the content-addressed store, hash-verified

264 }
265
266 public layoutNativeView(left: number, top: number, right: number, bottom: number): void {
267 if (!this.nativeViewProtected) {
268 return;
269 }
270
271 const nativeView = this.nativeViewProtected;
272 const frame = IOSHelper.getFrameFromPosition({
273 left,
274 top,
275 right,
276 bottom,
277 });
278 this._setNativeViewFrame(nativeView, frame);
279 }
280
281 public _layoutParent() {
282 if (this.nativeViewProtected) {

Callers 1

layoutMethod · 0.95

Calls 2

_setNativeViewFrameMethod · 0.95
getFrameFromPositionMethod · 0.80

Tested by

no test coverage detected