| 269 | } |
| 270 | |
| 271 | private _createHandlePortal(): ComponentPortal<HandleComponent> { |
| 272 | const injector = Injector.create({ |
| 273 | parent: this.injector, |
| 274 | providers: [ |
| 275 | { |
| 276 | provide: ResizeRef, |
| 277 | useValue: new ResizeRef( |
| 278 | this.elementRef, |
| 279 | this.overlayRef!, |
| 280 | this.minWidthPx, |
| 281 | this.maxWidthPx, |
| 282 | this.columnResize.liveResizeUpdates, |
| 283 | ), |
| 284 | }, |
| 285 | ], |
| 286 | }); |
| 287 | |
| 288 | return new ComponentPortal( |
| 289 | this.getOverlayHandleComponentType(), |
| 290 | this.viewContainerRef, |
| 291 | injector, |
| 292 | ); |
| 293 | } |
| 294 | |
| 295 | private _showHandleOverlay(): void { |
| 296 | if (!this._isDestroyed) { |