kendo-react icon indicating copy to clipboard operation
kendo-react copied to clipboard

Grid columns misalignment when zooming the browser.

Open simonssspirit opened this issue 3 years ago • 7 comments

Grid columns misalignment when zooming the browser.

This can be seen here: https://www.telerik.com/kendo-react-ui/components/grid/get-started/

Workaround: https://codesandbox.io/s/elated-sun-tv9zcx

import { setScrollbarWidth } from "@progress/kendo-react-common";
window.addEventListener("resize", () => setScrollbarWidth(), false);

simonssspirit avatar Apr 07 '21 07:04 simonssspirit

reported again in 1529881

simonssspirit avatar Sep 13 '21 10:09 simonssspirit

reported again in 1540833

simonssspirit avatar Oct 28 '21 04:10 simonssspirit

reported again in 1552677

simonssspirit avatar Feb 07 '22 05:02 simonssspirit

reported alos in 1556870

simonssspirit avatar Mar 09 '22 13:03 simonssspirit

@simonssspirit, has there been any movement on this?

jasel-lewis avatar May 31 '22 13:05 jasel-lewis

reported again in ticket ID: 1569452

vveesseelliinnaa avatar Jun 17 '22 13:06 vveesseelliinnaa

The header padding for the scroll width is controlled using a CSS var, and adding this to your app will resolve it:

import { setScrollbarWidth } from "@progress/kendo-react-common";
window.addEventListener("resize", () => setScrollbarWidth(), false);

Essentially it reset the css var when the window is resized, because there is no pure way to detect browser zoom, you can rely on the resize event.

Xizario avatar Jun 17 '22 13:06 Xizario

@jivanova @nstoychev Should we add this as a built-in feature for the Grid and any other component that has scrollbar? I personally think that it should be added separately as a workaround by the developers, because it will resolve the issues with all components and we will not have to handle the "resize" event internally for all components.

kdikov82 avatar Jan 29 '23 18:01 kdikov82