|
@@ -111,6 +111,8 @@ class KMNoteTableViewCell: NSTableCellView {
|
|
|
self.annotationContentLabel.cell?.truncatesLastVisibleLine = true
|
|
|
self.annotationContentLabel.isEditable = false
|
|
|
|
|
|
+// self.noteImageView.imageScaling = .scaleAxesIndependently
|
|
|
+
|
|
|
NotificationCenter.default.addObserver(self, selector: #selector(_contextDidEndEdit), name: NSControl.textDidEndEditingNotification, object: self.annotationContentLabel)
|
|
|
|
|
|
|
|
@@ -307,6 +309,7 @@ extension KMNoteTableViewCell {
|
|
|
self.annotationContentLabel.stringValue = returnString
|
|
|
} else {
|
|
|
self.annotationContentLabel.isHidden = true
|
|
|
+ self.contentView.isHidden = true
|
|
|
|
|
|
self.noteImageView.isHidden = false
|
|
|
let anno = note as! CPDFStampAnnotation
|
|
@@ -314,6 +317,7 @@ extension KMNoteTableViewCell {
|
|
|
}
|
|
|
} else if let anno = data as? CPDFSignatureAnnotation {
|
|
|
self.annotationContentLabel.isHidden = true
|
|
|
+ self.contentView.isHidden = true
|
|
|
|
|
|
self.noteImageView.isHidden = false
|
|
|
self.noteImageView.image = anno.signImage
|