You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
matsbryntse
changed the title
All day header out of sync with main schedule body after zoom
All day header out of sync with main schedule body after browser zoom
Jul 28, 2020
calendar.modes.week.scrollable.hasScrollbar() is somehow returning false, so the header row is no longer accounting for the visible vertical scrollbar in the detail view, so each column is out of step by scrollbarWidth / 7 pixels.
Have to check how hasScrollbar functions when zoomed.
Hm no. That accounts for zooming happening after the scrollbar width has been read as 15. Zoom change should uncache scrollbarWidth so that it gets recalculated.
Unfortunately, there's no reliable way to detect zoom. So then getScrollbarWidth will have to cache the devicePixelRatio at the time of measuring, and then when called again, see if it's changed, and if so, uncache the scrollbarWidth so that it measures it at the new zoom setting.
The text was updated successfully, but these errors were encountered: