Browse Source

【右侧面板】文字预览显示异常修复

lizhe 11 months ago
parent
commit
523636e08b

+ 1 - 1
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/AnnotationProperty/KMAnnotationPropertiesViewController.m

@@ -400,7 +400,7 @@
         self.contentViewController = vc;
     }
     
-    self.buttonbuttonLayoutConstraint.constant = self.buttonView.hidden ? -36 : 0;
+//    self.buttonbuttonLayoutConstraint.constant = self.buttonView.hidden ? -36 : 0;
 }
 
 - (void)selectAnnotations:(NSArray *)annotations {

+ 3 - 1
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/AnnotationProperty/KMGeneralAnnotationViewController.swift

@@ -433,7 +433,9 @@ let KMColorPickerViewHeight: CGFloat = 64
         } else {
             annotationColor = annotationModel?.color()
         }
-        guard let color = annotationColor else { return }
+        
+        let color = annotationColor ?? NSColor.black
+//        guard let color = annotationColor else { return }
         var opacity: CGFloat = 1.0
         color.usingColorSpaceName(.calibratedRGB)?.getRed(nil, green: nil, blue: nil, alpha: &opacity)
         if annotationType == .signFalse ||