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

Method _layoutParent

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

Source from the content-addressed store, hash-verified

279 }
280
281 public _layoutParent() {
282 if (this.nativeViewProtected) {
283 const frame = this.nativeViewProtected.frame;
284 const origin = frame.origin;
285 const size = frame.size;
286 const left = layout.toDevicePixels(origin.x);
287 const top = layout.toDevicePixels(origin.y);
288 const width = layout.toDevicePixels(size.width);
289 const height = layout.toDevicePixels(size.height);
290 this._setLayoutFlags(left, top, width + left, height + top);
291 }
292
293 super._layoutParent();
294 }
295
296 public _setLayoutFlags(left: number, top: number, right: number, bottom: number): void {
297 const width = right - left;

Callers 2

_layoutParentFunction · 0.80
layoutViewMethod · 0.80

Calls 1

_setLayoutFlagsMethod · 0.95

Tested by

no test coverage detected