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

Method _setLayoutFlags

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

Source from the content-addressed store, hash-verified

294 }
295
296 public _setLayoutFlags(left: number, top: number, right: number, bottom: number): void {
297 const width = right - left;
298 const height = bottom - top;
299 const widthSpec = layout.makeMeasureSpec(width, layout.EXACTLY);
300 const heightSpec = layout.makeMeasureSpec(height, layout.EXACTLY);
301 this._setCurrentMeasureSpecs(widthSpec, heightSpec);
302 this._privateFlags &= ~PFLAG_FORCE_LAYOUT;
303 this.setMeasuredDimension(width, height);
304
305 const { boundsChanged, sizeChanged } = this._setCurrentLayoutBounds(left, top, right, bottom);
306 this.updateBackground(sizeChanged, boundsChanged);
307 this._privateFlags &= ~PFLAG_LAYOUT_REQUIRED;
308 }
309
310 public focus(): boolean {
311 if (this.ios) {

Callers 1

_layoutParentMethod · 0.95

Calls 2

setMeasuredDimensionMethod · 0.95
updateBackgroundMethod · 0.95

Tested by

no test coverage detected