Skip to content

Commit 94a767f

Browse files
committed
fix(esf): disable pin if cant pin parent #5557
1 parent 06fa831 commit 94a767f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/igniteui-angular/src/lib/grids/column.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,8 +1653,8 @@ export class IgxColumnComponent implements AfterContentInit {
16531653
*/
16541654
public get pinnable() {
16551655
const gridUnpinnedWidth = (this.grid as any).getUnpinnedWidth(true);
1656-
const columnWidth = parseInt(this.width, 10);
1657-
return !((gridUnpinnedWidth - columnWidth) < this.grid.unpinnedAreaMinWidth);
1656+
const elementWidth = this.parent ? parseInt(this.topLevelParent.width, 10) : parseInt(this.width, 10);
1657+
return !((gridUnpinnedWidth - elementWidth) < this.grid.unpinnedAreaMinWidth);
16581658
}
16591659

16601660
/**

0 commit comments

Comments
 (0)