• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IgniteUI / igniteui-angular / 13331632524

14 Feb 2025 02:51PM CUT coverage: 22.015% (-69.6%) from 91.622%
13331632524

Pull #15372

github

web-flow
Merge d52d57714 into bcb78ae0a
Pull Request #15372: chore(*): test ci passing

1990 of 15592 branches covered (12.76%)

431 of 964 new or added lines in 18 files covered. (44.71%)

19956 existing lines in 307 files now uncovered.

6452 of 29307 relevant lines covered (22.02%)

249.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/projects/igniteui-angular/src/lib/directives/for-of/virtual.helper.component.ts
1
import { Component, ElementRef, HostBinding, Input, ViewChild, ViewContainerRef,
2
     ChangeDetectorRef, OnDestroy, OnInit, Inject, NgZone } from '@angular/core';
3
import { VirtualHelperBaseDirective } from './base.helper.component';
4
import { DOCUMENT } from '@angular/common';
5
import { PlatformUtil } from '../../core/utils';
6

7
@Component({
8
    selector: 'igx-virtual-helper',
9
    template: '<div #container class="igx-vhelper__placeholder-content" [style.height.px]="size"></div>',
10
    standalone: true
11
})
12
export class VirtualHelperComponent extends VirtualHelperBaseDirective implements OnInit, OnDestroy  {
2✔
13
    @HostBinding('scrollTop')
14
    public scrollTop;
15

16
    @HostBinding('style.width.px')
17
    public scrollWidth;
18

19
    @ViewChild('container', { read: ViewContainerRef, static: true }) public _vcr;
20
    @Input() public itemsLength: number;
21

22

23
    @HostBinding('class')
24
    public cssClasses = 'igx-vhelper--vertical';
77✔
25

26
    constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, zone: NgZone, @Inject(DOCUMENT) document, platformUtil: PlatformUtil) {
27
        super(elementRef, cdr, zone, document, platformUtil);
77✔
28
    }
29

30
    public ngOnInit() {
31
        this.scrollWidth = this.scrollNativeSize;
77✔
32
    }
33

34
    protected override restoreScroll() {
UNCOV
35
        this.nativeElement.scrollTop = this.scrollAmount;
×
36
    }
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc