-
Notifications
You must be signed in to change notification settings - Fork 159
Open
Open
Column resizer top position is incorrect when igx-grid is rendered inside a Shadow DOM context#16119
Bug
#16123 (+2)
Copy link
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.grid: column-resizing
Description
Description
When using igx-grid
inside a component with ViewEncapsulation.ShadowDom for example, the column resize line does not align properly with the header cell during resize.
This is caused by incorrect calculation of the top position in IgxColumnResizerDirective, where event.target.getBoundingClientRect() is used. Inside a Shadow DOM context, event.target refers to the shadow host (due to event retargeting), not the actual internal element that was interacted with.
- igniteui-angular version: any
- browser: any
Steps to reproduce
- Create a component with:
encapsulation: ViewEncapsulation.ShadowDom
- Inside its template:
-
Add an <igx-grid>
-
Add some columns with [resizable]="true"
-
Optionally add <igx-grid-toolbar>
- In the component’s styles, explicitly include Ignite UI styles again since Shadow DOM encapsulation blocks global styles
Here is a StackBlitz sample where the issue is reproduced
Result
The resizer line appears misaligned, often higher than the actual column header.
Expected result
The resizer line should align with the top of the header cell.
Attachments

Metadata
Metadata
Assignees
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.Applies to issues that have pending PRs resolving them, or PRs that have already merged.grid: column-resizing