Skip to content

Commit bf36d46

Browse files
committed
Remove fast path in resize handler
It can't reliably determine whether the scrollbar still needs to be clipped Closes codemirror#5445
1 parent 9e8a417 commit bf36d46

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/edit/global_events.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ function registerGlobalHandlers() {
3535
// Called when the window resizes
3636
function onResize(cm) {
3737
let d = cm.display
38-
if (d.lastWrapHeight == d.wrapper.clientHeight && d.lastWrapWidth == d.wrapper.clientWidth)
39-
return
4038
// Might be a text scaling operation, clear size caches.
4139
d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null
4240
d.scrollbarsClipped = false

0 commit comments

Comments
 (0)