|
@@ -22,7 +22,7 @@ class KMDesignPropertyColorBox: NSBox {
|
|
|
let startPoint = NSPoint(x: 3, y: 3)
|
|
|
path.move(to: startPoint)
|
|
|
// Set the end point of the path
|
|
|
- let endPoint = NSPoint(x: dirtyRect.width-3, y: dirtyRect.height-3)
|
|
|
+ let endPoint = NSPoint(x: super.frame.width-3, y: super.frame.height-3)
|
|
|
path.line(to: endPoint)
|
|
|
// Draw the path
|
|
|
NSColor.km_init(hex: "#F3465B").setStroke()
|