telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
464 stars 213 forks source link

Unintended Behavior in <kendo-grid-column-chooser> - View jumps when opening the popup #4272

Open denny-in4out opened 3 months ago

denny-in4out commented 3 months ago

Bug report

The popup of <kendo-grid-column-chooser> has a new behavior since the update

which has a disturbing effect on a certain scenario.

The point is that after opening, the view is realigned with the popup. This means that the current view can jump. In other words, if the user has scrolled somewhere, after opening the popup this will be adjusted. It becomes particularly tedious if there is enough space above the grid so that the popup can be placed above the icon. Then the view jumps so much that the Grid is barely visible. As a result, you have to scroll down again.

Reproduction of the problem

I have provided you with a playground so that you can try it out for yourself: https://stackblitz.com/edit/angular-e5mp3d-2u1bzh?file=src%2Fapp%2Fapp.component.ts

I have added a large green area at the top and bottom so that this behavior can be simulated.

  1. Scroll down to the grid
  2. click on the menu icon
  3. Repeat the process at different scroll depths and observe the behavior.

Expected/desired behavior

We liked the behavior before the update better. Alternatively, it would be great if the <kendo-grid-column-chooser> could be parameterized like a regular popup. With a regular popup, you can control the opening position yourself.

With such a system, we could at least say that it is always allowed to place itself below the icon. Then the jump would only be slightly worse, as the grid would still remain visible.

Environment