igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

igx-grid column misalignment occurs with many columns

Open ymita opened this issue 8 years ago • 2 comments

Description

Column misalignment occurs when there are many columns

Steps to reproduce

  1. Run the sample application
  2. Observe the column alignment after "column3"

Result

String value on "column3" does not start from the left edge of "column3". The following columns have the same symptom.

image

Expected result

String value on "column3" starts from the left edge of "column3". The following columns behave the same.

Attachments

demo-app.zip

ymita avatar Dec 11 '17 05:12 ymita

Hey Yuki, this issue will no longer appear if you start to use the latest igniteui-angular pachage. What should you consider:

  1. [email protected] is deprecated
  2. Use igniteui-angular for the latest features
  3. Uninstall igniteui-js-blocks and run npm install igniteui-angular.
npm uninstall igniteui-js-blocks
npm install igniteui-angular
  1. Update .angular-cli.json
"styles": [
        "styles.scss",
        "../node_modules/igniteui-angular/igniteui-angular.css"
      ],
  1. Update app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import 'hammerjs';
import {
  IgxGridModule,
  IgxSwitchModule,
  IgxDatePickerModule
} from 'igniteui-angular/main';


  1. Update app.module.ts IgxGridModule.forRoot(ROUTES)
@NgModule({
  declarations: [
    AppComponent,
    GridComponent
  ],
  imports: [
    BrowserModule,
    RouterModule.forRoot(ROUTES),
    IgxGridModule.forRoot(),
    IgxSwitchModule,
    IgxDatePickerModule,
  ],

Result:

image

zdrawku avatar Jan 29 '18 12:01 zdrawku

Hi Zdravko,

Thank you for the update. I confirmed that the alignment issue is not reproduced with Ignite UI for Angular version 5.1.3.

I'm attaching an updated sample. It also contains changes on column definitions since some columns had wrong dataType in the previous one. demo-app_1.zip

Thanks, Yuki

ymita avatar Jan 30 '18 05:01 ymita