(left: number, top: number, right: number, bottom: number)
| 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) { |
no test coverage detected