Remove hidden titlebar safe area for SurfaceScrollView

pull/9241/head
Daniel Wennberg 2025-10-16 22:32:57 -07:00
parent 58699c7992
commit ffead466c7
1 changed files with 6 additions and 1 deletions

View File

@ -118,7 +118,12 @@ class SurfaceScrollView: NSView {
deinit {
observers.forEach { NotificationCenter.default.removeObserver($0) }
}
// The entire bounds is a safe area, so we override any default
// insets. This is necessary for the content view to match the
// surface view if we have the "hidden" titlebar style.
override var safeAreaInsets: NSEdgeInsets { return NSEdgeInsetsZero }
override func setFrameSize(_ newSize: NSSize) {
super.setFrameSize(newSize)