Kendo-angular: Grid: Column Resizing Odd Behavior in Certain Layouts

Created on 3 Oct 2018  路  1Comment  路  Source: telerik/kendo-angular

I'm submitting a...

  • Bug report

Current behavior

In certain layouts when resizing columns it seems that the table content becoming scrollable horizontally is using the viewport size in its calculations.

Expected behavior

Minimal reproduction of the problem with instructions


Browser:

  • Chrome (desktop) version XX
  • Safari (desktop) version XX

Question Styling grid

Most helpful comment

This is not an issue in the Grid component, rather in the specific layout. Using overflow to resolve this is okay. An alternative way of resolving the problem is to set min-width: 0 on the w-100 container -- here is an article that explains this in more detail.

The behavior is observed after resizing because the grid columns get assigned a width, so that they are not auto-sized. The same problem can also be observed if the gird is replaced with an arbitrary scroll container with enough content to cause a scroll. See this Stackblitz example.

>All comments

This is not an issue in the Grid component, rather in the specific layout. Using overflow to resolve this is okay. An alternative way of resolving the problem is to set min-width: 0 on the w-100 container -- here is an article that explains this in more detail.

The behavior is observed after resizing because the grid columns get assigned a width, so that they are not auto-sized. The same problem can also be observed if the gird is replaced with an arbitrary scroll container with enough content to cause a scroll. See this Stackblitz example.

Was this page helpful?
0 / 5 - 0 ratings