Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

igx-grid - on IE11, misalignment between column headers and cells happens when the total width of the columns is shorter than the grid width. #3027

Closed
tkiryu opened this issue Nov 15, 2018 · 3 comments
Assignees
Labels
browser: IE-11 Issues specific to the MS IE11 browser 🐛 bug Any issue that describes a bug grid: general version: 6.2.x ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@tkiryu
Copy link

tkiryu commented Nov 15, 2018

Description

On IE11, misalignment between column headers and cells happens when the total width of the columns is shorter than the grid width.

  • igniteui-angular version: 6.2.0
  • browser: IE11

Steps to reproduce

  1. Run the attached sample on IE11.

Result

Misalignment between column headers and cells happens.
Here is screenshots.

  • IE11 has a problem.
    ie11

  • Chrome is OK
    chrome

Expected result

Misalignment between column headers and cells should not happen.

Attachments

igx-grid.zip

@tkiryu
Copy link
Author

tkiryu commented Nov 15, 2018

The behavior of igx-grid-header is OK thanks to max-width.
https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/grid-header.component.ts#L73-L75

On the other hand, the behavior of igx-grid-cell is not good. It doesn't have max-width, which causes the problem.
https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/grids/cell.component.ts#L381-L382

@tkiryu
Copy link
Author

tkiryu commented Nov 19, 2018

I found the root cause. flex-basis and box-sizing don't work well together on IE11. Please see the following link.
https://stackoverflow.com/questions/37353792/flex-basis-and-box-sizing

@SAndreeva SAndreeva self-assigned this Nov 19, 2018
@SAndreeva SAndreeva added the 🛠️ status: in-development Issues and PRs with active development on them label Nov 19, 2018
@SlavUI SlavUI added 🐛 bug Any issue that describes a bug grid: general browser: IE-11 Issues specific to the MS IE11 browser version: 6.2.x labels Nov 19, 2018
@SAndreeva
Copy link
Contributor

@tkiryu, we are currently making some refactoring that tends to fix similar issues. Thanks for the deep observations and the help!

@SAndreeva SAndreeva added ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. and removed 🛠️ status: in-development Issues and PRs with active development on them labels Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser: IE-11 Issues specific to the MS IE11 browser 🐛 bug Any issue that describes a bug grid: general version: 6.2.x ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Projects
None yet
Development

No branches or pull requests

3 participants