telerik / kendo-ui-core

An HTML5, jQuery-based widget library for building modern web apps.
http://www.telerik.com/kendo-ui
Other
2.53k stars 1.91k forks source link

RangeSlider doesn't rerender on resize #6852

Closed montella1507 closed 2 years ago

montella1507 commented 2 years ago

RangeSlider is responsive, however only when first render time. If you resize parent element, its not re-rendered correctly:

https://stackblitz.com/edit/angular-7j7hu2?file=src%2Fapp%2Fapp.component.ts

https://user-images.githubusercontent.com/10418323/169268242-1c5b78af-723d-46b7-bb44-f9fb7cd10e78.mp4

If its not considered as a bug, is there a way how to rerender it manually? (render() funkction) ?

Or we have to attach resizeObserver on the parent and do some kind of hacks with ngIf -> setTimeout(ngIf) ?

Dimitar-Goshev commented 2 years ago

@montella1507 Thank you for your feedback. To avoid sizing issues on browser window resizing, the RangeSlider resize() method may be used to resize the component on window resize event - Dojo snippet.

montella1507 commented 2 years ago

Helo @Dimitar-Goshev thanks for the answer. Thats my bad i put the Issue in the wrong repository, wanted to report that to the kendo-angular.

montella1507 commented 2 years ago

https://github.com/telerik/kendo-angular/issues/3677 fixed :-)