Browse Source

【Form表单】单击签名展开右侧属性面板

niehaoyu 8 months ago
parent
commit
e32e6f508c

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

@@ -696,14 +696,13 @@
     } else if (openPropertiesType == KMOpenPropertiesType_FormSignatureClick) {
         self.contentViewController = nil;
         self.titleLabel.stringValue = @"";
+        self.titleViewHeightConstraint.constant = 0;
         
         CPDFAnnotationModel *annotationModel = [[CPDFAnnotationModel alloc] initWithPDFAnnotations:_annotations];
         KMSignatureAnnotationViewController *vc = [[KMSignatureAnnotationViewController alloc] init];
         vc.isClickSignatureList = YES;
         vc.annotationModel = annotationModel;
         vc.pdfView = self.pdfView;
-        vc.view.frame = [self viewControllerRect];
-        vc.view.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;
         self.propertiesBox.contentView = vc.view;
         self.contentViewController = vc;
     }

+ 2 - 2
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/KMRightSideViewController.swift

@@ -367,9 +367,9 @@ class KMRightSideViewController: NSViewController,CipherTextViewDelegate {
             self.contextBox.contentView = self.annotationProperties.view
         }
         let editAnnotation: CPDFAnnotation = notification.object as! CPDFAnnotation
-        if self.mainController?.model.rightPanelIsOpen == false {
+//        if self.mainController?.model.rightPanelIsOpen == false {
             self.mainController?.toggleRightPane() 
-        }
+//        }
         self.annotationProperties.mainController = self.mainController
         self.annotationProperties.isClickFormSignature = true;
         self.annotationProperties.annotations = [editAnnotation]

+ 1 - 0
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController.swift

@@ -481,6 +481,7 @@ import Cocoa
         self.rightSideViewController.isHidden = true
         self.rightSideViewController.delegate = self
         self.rightView.addSubview(self.rightSideViewController.view)
+        self.rightSideViewController.mainController = self
         self.rightSideViewController.propertyDidChange = { [weak self] model in
             if let anno = model as? CSelfSignAnnotation {
                 self?.leftSideViewController.refreshUIForAnnoAttributeDidChange(anno, attributes: nil)