@rlucan/ui 20.0.4 → 20.0.6

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.
@@ -1595,11 +1595,11 @@ class ForceVisibilityDirective {
1595
1595
  }
1596
1596
  else {
1597
1597
  if (this.visibilityFromTop !== 0) {
1598
- document.getElementsByTagName('app-root')[0].scrollTo(0, rect.top - +this.visibilityFromTop);
1598
+ document.getElementsByClassName('force-visibility-root')[0].scrollTo(0, rect.top - +this.visibilityFromTop);
1599
1599
  }
1600
1600
  else {
1601
1601
  if (rect.bottom > window.innerHeight) {
1602
- document.getElementsByTagName('app-root')[0].scrollBy(0, rect.bottom - window.innerHeight + 15);
1602
+ document.getElementsByClassName('force-visibility-root')[0].scrollBy(0, rect.bottom - window.innerHeight + 15);
1603
1603
  }
1604
1604
  }
1605
1605
  }