Skip to content

Commit b24c280

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Remove border from calc since it's already on the header elem.
1 parent 9ab0996 commit b24c280

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4605,9 +4605,7 @@ export abstract class IgxGridBaseDirective implements GridType,
46054605
const headerPadding = parseFloat(headerStyle.paddingLeft) + parseFloat(headerStyle.paddingRight) +
46064606
parseFloat(headerStyle.borderRightWidth);
46074607

4608-
// Take into consideration border since column pinning applies borders to it if its not a columnGroup.
4609-
const borderSize = parseFloat(headerStyle.borderRightWidth) + parseFloat(headerStyle.borderLeftWidth);
4610-
return { width: Math.ceil(headerWidth), padding: Math.ceil(headerPadding + borderSize) };
4608+
return { width: Math.ceil(headerWidth), padding: Math.ceil(headerPadding) };
46114609
}
46124610

46134611
/**

0 commit comments

Comments
 (0)