fix: fixed a scroll when resizing the popup view (#907)

This commit is contained in:
Serhiy Mytrovtsiy
2022-04-22 17:37:45 +02:00
parent 19be55fd35
commit c7f7a93c09

View File

@@ -200,6 +200,10 @@ internal class PopupView: NSView {
self.recalculateHeight(size)
}
}
if let documentView = self.body.documentView {
documentView.scroll(NSPoint(x: 0, y: documentView.bounds.size.height))
}
}
internal func disappear() {}
@@ -230,7 +234,7 @@ internal class PopupView: NSView {
))
if let documentView = self.body.documentView {
documentView.scroll(NSPoint(x: 0, y: documentView.bounds.size.height))
documentView.scroll(NSPoint(x: 0, y: self.body.documentVisibleRect.origin.y))
}
}
}