When the scheduler is shown or hidden via style="display: none" the headers are not in sync.
Probably related to #4359
Cause:BaseView.syncTables() checks for hasScrollbar() and the adds inline-styles to the header (padding-inline-end: 0px or padding-inline-start), but these styles are not removed if needed.
Fix would probably to simply remove the inline-styles on the header when neeeded.
Steps To Reproduce
Sample:
initially hide the scheduler via style="display: none"
when the application is loaded, remove the display: none (e.g. via a button click)
Scheduler headers are out of sync (e.g. in the week-view)
Table headers are also not in sync when the browser zoom is changed, e.g. on the Angular Scheduler Example. Especially in use cases where zoom in/out causes the scollbars to appear/disapear.
Description
When the scheduler is shown or hidden via
style="display: none"
the headers are not in sync.Probably related to #4359
Cause:
BaseView.syncTables()
checks forhasScrollbar()
and the adds inline-styles to the header (padding-inline-end: 0px
orpadding-inline-start
), but these styles are not removed if needed.Fix would probably to simply remove the inline-styles on the header when neeeded.
Steps To Reproduce
Sample:
style="display: none"
display: none
(e.g. via a button click)see https://stackblitz.com/edit/kendo-scheduler-header-not-in-sync?file=src%2Fapp%2Fapp.component.ts
Screenshots or video
Actual Behavior
week view headers are not in sync with the table below, they're missing the space for the scrollbars
Expected Behavior
week view headers should always be in in sync with the table below.
BaseView.syncTables()
should remove the inline-styles when needed.Browser
All
Browser version
latest
OS type
No response
OS version
No response
Last working version of the Kendo UI for Angular package (if regression).
No response