@seniorsistemas/angular-components 14.16.6 → 14.16.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3805,7 +3805,9 @@ var TableFrozenPositionDirective = /** @class */ (function () {
3805
3805
  this.el = el;
3806
3806
  this.host = host;
3807
3807
  this.sTableFrozenPosition = "left";
3808
+ this.isTableVisible = false;
3808
3809
  this.onColumnsChanged = new EventEmitter();
3810
+ this.table = host;
3809
3811
  this.host.onColResize.subscribe(function () {
3810
3812
  _this.handleColResize();
3811
3813
  });
@@ -3841,6 +3843,15 @@ var TableFrozenPositionDirective = /** @class */ (function () {
3841
3843
  this.applyStylesForTable();
3842
3844
  this.setUpColumnMonitoring();
3843
3845
  };
3846
+ TableFrozenPositionDirective.prototype.ngAfterContentChecked = function () {
3847
+ if (!this.isTableVisible && !!this.table.el.nativeElement.offsetParent) {
3848
+ this.isTableVisible = true;
3849
+ this.synchronizeRowHeight();
3850
+ }
3851
+ else if (this.isTableVisible && !this.table.el.nativeElement.offsetParent) {
3852
+ this.isTableVisible = false;
3853
+ }
3854
+ };
3844
3855
  TableFrozenPositionDirective.prototype.ngOnDestroy = function () {
3845
3856
  window.removeEventListener("resize", this.handleWindowResize.bind(this));
3846
3857
  if (this.tableHeadObservable) {