user122222
user122222

Reputation: 2449

Ag-grid prevent horizontal scroll when resizing screen

I've got (gridReady)="onGridReady($event)"

        this.grid = params;
        this.grid.api.sizeColumnsToFit();
    }

In my component, which fits columns to fit when grid is loaded. However when resizing screen I get horizontal scroll from time to time which is extremely annoying if there are only couple of rows, because it hides data. Is it possible to prevent that?

Upvotes: 0

Views: 4014

Answers (1)

Dimitrios Douras
Dimitrios Douras

Reputation: 506

Use this in your css:

.grid {
    overflow-x: hidden;
}

Upvotes: 1

Related Questions