Explorar el Código

【注释】添加图片至页面,右键-批注,选中文字时,右侧属性面板要对应显示文字属性

liujiajie hace 10 meses
padre
commit
8434a563dd

+ 7 - 6
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController+Action.swift

@@ -1316,22 +1316,23 @@ extension KMMainViewController {
                 default:
                     break
                 }
+                self.rightSideViewController.isHidden = false
+                self.rightSideViewController.subViewType = .AnnotationProperts
                 if annotation != nil{
                     self.listView.activeAnnotations.removeAllObjects()
 //                    self.listView.activeAnnotations.add(annotation as Any)
                     var newAnnonations : [CPDFAnnotation] = []
                     newAnnonations.append(annotation!)
                     self.listView.updateActiveAnnotations(newAnnonations)
-                    self.openRightPane()
+//                    self.openRightPane()
                 }
                 //        self.rightSideViewController.view.isHidden = false
-                self.rightSideViewController.isHidden = false
-                self.rightSideViewController.subViewType = .AnnotationProperts
+              
             }
             
-            if (annotation != nil) {
-                self.listView.updateIsRightActiveAnnotations([annotation!])
-            }
+//            if (annotation != nil) {
+//                self.listView.updateIsRightActiveAnnotations([annotation!])
+//            }
         }
     }