Skip to content

Commit 4ac4804

Browse files
committed
fix: Fixed display issues on macOS 14
1 parent 4c0e8dc commit 4ac4804

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Hot/Classes/GraphView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class GraphView: NSView
5454
return
5555
}
5656

57-
let path = NSBezierPath( roundedRect: rect.insetBy( dx: 1, dy: 1 ), xRadius: 10, yRadius: 10 )
57+
let path = NSBezierPath( roundedRect: self.bounds.insetBy( dx: 1, dy: 1 ), xRadius: 10, yRadius: 10 )
5858

5959
NSColor.controlTextColor.withAlphaComponent( 0.2 ).setStroke()
6060
NSColor.controlTextColor.withAlphaComponent( 0.05 ).setFill()
@@ -64,7 +64,7 @@ public class GraphView: NSView
6464
let path1 = NSBezierPath()
6565
let path2 = NSBezierPath()
6666
var i = CGFloat( 0 )
67-
let rect = rect.insetBy( dx: 10, dy: 10 )
67+
let rect = self.bounds.insetBy( dx: 10, dy: 10 )
6868

6969
for i in 0 ... 100
7070
{

0 commit comments

Comments
 (0)