|
@@ -797,6 +797,10 @@
|
|
|
}
|
|
|
|
|
|
- (void)setOpenPropertiesType:(KMOpenPropertiesType)openPropertiesType {
|
|
|
+ self.contentViewController = nil;
|
|
|
+ self.titleLabel.stringValue = @"";
|
|
|
+ self.titleViewHeightConstraint.constant = 0;
|
|
|
+
|
|
|
_openPropertiesType = openPropertiesType;
|
|
|
if (openPropertiesType == KMOpenPropertiesType_PageDisplay) {
|
|
|
if (self.contentViewController) {
|
|
@@ -828,14 +832,14 @@
|
|
|
} 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];
|
|
|
- [self.view addSubview:vc.view];
|
|
|
+ self.propertiesBox.contentView = vc.view;
|
|
|
self.contentViewController = vc;
|
|
|
}
|
|
|
}
|