|
@@ -2064,15 +2064,15 @@ extension KMLeftSideViewController: NSOutlineViewDelegate, NSOutlineViewDataSour
|
|
|
|
|
|
func outlineView(_ outlineView: NSOutlineView, heightOfRowByItem item: Any) -> CGFloat {
|
|
func outlineView(_ outlineView: NSOutlineView, heightOfRowByItem item: Any) -> CGFloat {
|
|
if outlineView.isEqual(self.noteOutlineView) {
|
|
if outlineView.isEqual(self.noteOutlineView) {
|
|
-// if let model = item as? KMBotaAnnotationModel {
|
|
|
|
-// if model.foldType == .fold {
|
|
|
|
-// return model.foldH
|
|
|
|
-// }
|
|
|
|
-// if let anno = model.anno {
|
|
|
|
-// return KMBOTAAnnotationTool.fetchCellHeight(annotation: anno, maxSize: CGSize(width: 260+40 - 16, height: 1000))
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
- return 30 + 30
|
|
|
|
|
|
+ if let model = item as? KMBotaAnnotationModel {
|
|
|
|
+ if model.foldType == .fold {
|
|
|
|
+ return model.foldH
|
|
|
|
+ }
|
|
|
|
+ if let anno = model.anno {
|
|
|
|
+ return KMBOTAAnnotationTool.fetchCellHeight(annotation: anno, maxSize: CGSize(width: 260+40 - 16, height: 1000))
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return 30
|
|
} else if outlineView.isEqual(self.tocOutlineView) {
|
|
} else if outlineView.isEqual(self.tocOutlineView) {
|
|
if let ol = item as? CPDFOutline {
|
|
if let ol = item as? CPDFOutline {
|
|
let string: NSString = ol.label as NSString
|
|
let string: NSString = ol.label as NSString
|