|
|
|
@ -211,11 +211,13 @@ export class AttributeTableComponent extends PageComponent implements AfterViewI |
|
|
|
|
|
|
|
ngOnInit() { |
|
|
|
this.widgetResize$ = new ResizeObserver(() => { |
|
|
|
const showHidePageSize = this.elementRef.nativeElement.offsetWidth < hidePageSizePixelValue; |
|
|
|
if (showHidePageSize !== this.hidePageSize) { |
|
|
|
this.hidePageSize = showHidePageSize; |
|
|
|
this.cd.markForCheck(); |
|
|
|
} |
|
|
|
this.zone.run(() => { |
|
|
|
const showHidePageSize = this.elementRef.nativeElement.offsetWidth < hidePageSizePixelValue; |
|
|
|
if (showHidePageSize !== this.hidePageSize) { |
|
|
|
this.hidePageSize = showHidePageSize; |
|
|
|
this.cd.markForCheck(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.widgetResize$.observe(this.elementRef.nativeElement); |
|
|
|
} |
|
|
|
|