- remove background drawing in the popup view (#165)

This commit is contained in:
Serhiy Mytrovtsiy
2020-11-16 18:33:33 +01:00
parent 45a00151bc
commit 52f32d33e4

View File

@@ -111,7 +111,7 @@ internal class PopupView: NSView {
self.body = NSScrollView(frame: NSRect(
x: Constants.Popup.margins,
y: Constants.Popup.margins,
width: frame.width,
width: frame.width - Constants.Popup.margins*2,
height: frame.height - self.header.frame.height - Constants.Popup.margins*2
))
@@ -120,6 +120,7 @@ internal class PopupView: NSView {
self.wantsLayer = true
self.layer?.cornerRadius = 3
self.body.drawsBackground = false
self.body.translatesAutoresizingMaskIntoConstraints = true
self.body.borderType = .noBorder
self.body.hasVerticalScroller = true