File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
projects/igniteui-angular/src/lib/grids/pivot-grid Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11
11
< span id ='empty ' igxDrop (dropped) ="onDimDrop($event, filterArea, 2) "
12
12
*ngIf ="grid.filterDimensions.length === 0 "
13
13
class ='igx-pivot__emptyChipArea '> {{grid.resourceStrings.igx_grid_pivot_empty_filter_drop_area}}</ span >
14
- < ng-container *ngFor ="let filter of grid.filterDimensions ; let last = last; ">
14
+ < ng-container *ngFor ="let filter of this.filterAreaDimensions ; let last = last; ">
15
15
< span [style.visibility] ='"hidden" ' class ="igx-grid__tr-pivot--chip_drop_indicator "
16
16
[style.height.px] ='getAreaHeight(filterArea) '> </ span >
17
17
< igx-chip [id] ="filter.memberName " [draggable] ="true " [displayDensity] ="grid.displayDensity "
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent implem
129
129
if ( this . filterArea ?. chipsList && this . filterArea . chipsList . length !== 0 ) {
130
130
const styles = getComputedStyle ( this . pivotFilterContainer . nativeElement ) ;
131
131
const containerPaddings = parseFloat ( styles . paddingLeft ) + parseFloat ( styles . paddingRight ) ;
132
- chipsWidth += containerPaddings + ( this . filtersButton ? this . filtersButton . el . nativeElement . getBoundingClientRect ( ) . width : 0 ) ;
132
+ chipsWidth += containerPaddings + ( this . filtersButton && this . filterArea ?. chipsList . length > 1 ? this . filtersButton . el . nativeElement . getBoundingClientRect ( ) . width : 0 ) ;
133
133
this . filterArea . chipsList . forEach ( chip => {
134
134
const dim = this . grid . filterDimensions . find ( x => x . memberName === chip . id ) ;
135
135
if ( dim ) {
You can’t perform that action at this time.
0 commit comments