Bläddra i källkod

【fix】【BOTA】注释列表,回复较长超过一屏时,编辑已有的回复,不会自动跳到输入框的位置

tangchao 5 månader sedan
förälder
incheckning
f85f7ad3aa

+ 5 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/Tools/KMNoteReplyHanddler.swift

@@ -260,6 +260,11 @@ class KMNoteReplyHanddler: NSObject {
             
             if data == NSLocalizedString("Edit", comment: "") {
                 self?.editReplyAnnotation(replyModel: replyModel)
+                DispatchQueue.main.async {
+                    if let row = self?.viewC?.noteOutlineView.row(forItem: replyModel?.annoModel?.footerModel) {
+                        self?.viewC?.noteOutlineView.scrollRowToVisible(row)
+                    }
+                }
             } else if data == NSLocalizedString("Delete", comment: "") {
                 if let model = replyModel {
                     self?.removeReplyAnnotation(model.replyAnno)