Browse Source

【兼容】透明色绘制兼容问题修复

lizhe 1 year ago
parent
commit
1cb6e1a223

+ 1 - 1
PDF Office/PDF Master/Class/Home/ViewController/customViewController/KMDesignPropertySelector.swift

@@ -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()