• 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

7.14
/projects/igniteui-angular/src/lib/grids/resizing/pivot-grid/pivot-resizing.service.ts
1
import { Injectable } from '@angular/core';
2
import { ColumnType } from '../../common/grid.interface';
3
import { PivotRowHeaderGroupType } from '../../pivot-grid/pivot-grid.interface';
4
import { IgxColumnResizingService } from '../resizing.service';
5

6

7
/**
8
 * @hidden
9
 * @internal
10
 */
11
@Injectable()
12
export class IgxPivotColumnResizingService extends IgxColumnResizingService {
2✔
13
    /**
14
     * @hidden
15
     */
16
    public rowHeaderGroup: PivotRowHeaderGroupType;
17

18
    /**
19
     * @hidden
20
     */
21
    public override getColumnHeaderRenderedWidth() {
UNCOV
22
        return this.rowHeaderGroup.header.nativeElement.getBoundingClientRect().width;
×
23
    }
24

25
    protected override _handlePixelResize(diff: number, column: ColumnType) {
UNCOV
26
        const rowDim = this.rowHeaderGroup.parent.rootDimension;
×
UNCOV
27
        if (!rowDim) return;
×
28

UNCOV
29
        const currentColWidth = parseFloat(column.width);
×
UNCOV
30
        const colMinWidth = column.minWidthPx;
×
UNCOV
31
        const colMaxWidth = column.maxWidthPx;
×
UNCOV
32
        let newWidth = currentColWidth;
×
UNCOV
33
        if (currentColWidth + diff < colMinWidth) {
×
UNCOV
34
            newWidth = colMinWidth;
×
UNCOV
35
        } else if (colMaxWidth && (currentColWidth + diff > colMaxWidth)) {
×
36
            newWidth = colMaxWidth;
×
37
        } else {
UNCOV
38
            newWidth = (currentColWidth + diff);
×
39
        }
40

UNCOV
41
        this.rowHeaderGroup.grid.resizeRowDimensionPixels(rowDim, newWidth);
×
42
    }
43

44
    protected override _handlePercentageResize() { }
45
}
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