Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
top: 0;
inset-inline-end: 0;
width: var(--vhelper-scrollbar-size);
overflow-x: hidden;
}

%vhelper--horizontal {
width: 100%;
overflow-y: hidden;
}

%vhelper-content--vertical {
Expand Down
9 changes: 3 additions & 6 deletions projects/igniteui-angular/grids/grid/src/cell.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,10 @@ describe('IgxGrid - Cell component #grid', () => {
const lastCell = cells[cells.length - 1];
expect(GridFunctions.getValueFromCellElement(lastCell)).toEqual('990');

const scrollbarBorderWidth = parseFloat(getComputedStyle(
grid.nativeElement.querySelector('.igx-grid__tbody-scrollbar')
).getPropertyValue('border-inline-start-width')) || 0;
// Calculate where the end of the cell is. Relative left position should equal the grid calculated width.
// Calculate where the end of the cell is. Relative left position should equal the grid calculated
// width, which is already reduced by the vertical scrollbar's width.
expect(lastCell.nativeElement.getBoundingClientRect().left +
lastCell.nativeElement.offsetWidth +
grid.scrollSize).toEqual(grid.calcWidth + scrollbarBorderWidth);
lastCell.nativeElement.offsetWidth).toEqual(grid.calcWidth);
}));

it('should not reduce the width of last pinned cell when there is vertical scroll.', () => {
Expand Down
Loading