Selaa lähdekoodia

【fix】【APP内反馈】文档附件框 高度太窄

tangchao 7 kuukautta sitten
vanhempi
commit
b75ef2099d

BIN
PDF Office/PDF Master/Class/Appearance/Image.xcassets/Tools/UserFeekback/KMImageNameUserFbDeleteHoverIcon.imageset/Clear Button 1.pdf


BIN
PDF Office/PDF Master/Class/Appearance/Image.xcassets/Tools/UserFeekback/KMImageNameUserFbDeleteHoverIcon.imageset/Clear Button.pdf


+ 22 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/Tools/UserFeekback/KMImageNameUserFbDeleteHoverIcon.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "filename" : "Clear Button.pdf",
+      "idiom" : "universal"
+    },
+    {
+      "appearances" : [
+        {
+          "appearance" : "luminosity",
+          "value" : "dark"
+        }
+      ],
+      "filename" : "Clear Button 1.pdf",
+      "idiom" : "universal"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
PDF Office/PDF Master/Class/Appearance/Image.xcassets/Tools/UserFeekback/KMImageNameUserFbDeleteIcon.imageset/Clear Button 1.pdf


BIN
PDF Office/PDF Master/Class/Appearance/Image.xcassets/Tools/UserFeekback/KMImageNameUserFbDeleteIcon.imageset/Clear Button.pdf


+ 22 - 0
PDF Office/PDF Master/Class/Appearance/Image.xcassets/Tools/UserFeekback/KMImageNameUserFbDeleteIcon.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "filename" : "Clear Button.pdf",
+      "idiom" : "universal"
+    },
+    {
+      "appearances" : [
+        {
+          "appearance" : "luminosity",
+          "value" : "dark"
+        }
+      ],
+      "filename" : "Clear Button 1.pdf",
+      "idiom" : "universal"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

+ 6 - 0
PDF Office/PDF Master/Class/Home/ViewController/KMHomePopViewController.swift

@@ -109,6 +109,12 @@ typealias popCellViewWillShow = (_ cellView: KMBox, _ index: Int) -> Void
         box.borderWidth = 0.0
         box.contentViewMargins = NSMakeSize(0, 0)
         customBox.contentView?.addSubview(box)
+        box.mas_makeConstraints { (make) in
+            make?.left.equalTo()(frame.origin.x)
+            make?.right.equalTo()(-frame.origin.x)
+            make?.height.equalTo()(frame.size.height)
+            make?.top.equalTo()(customBox.mas_top)?.offset()(CGFloat(frame.origin.y))
+        }
         
         let lineBox = NSBox.init(frame: CGRect(x: 0, y: 6, width: frame.width, height: 1))
         lineBox.boxType = .separator

+ 1 - 1
PDF Office/PDF Master/Class/Tools/UserFeekback/Tools/KMUserFeekbackHanddler.swift

@@ -11,7 +11,7 @@ class KMUserFeekbackHanddler: NSObject {
     private weak var popover_: NSPopover?
     
     func showUserFbPopView(sender: NSView) {
-        guard let _ = self.popover_ else {
+        if let _ = self.popover_ {
             return
         }
         

+ 1 - 1
PDF Office/PDF Master/Class/Tools/UserFeekback/View/KMUserListItemCellView.xib

@@ -19,7 +19,7 @@
                         <rect key="frame" x="1" y="1" width="478" height="18"/>
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                         <subviews>
-                            <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="6tI-QJ-kgI" customClass="KMHoverButton">
+                            <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="6tI-QJ-kgI" customClass="KMCoverButton" customModule="PDF_Reader_Pro" customModuleProvider="target">
                                 <rect key="frame" x="4" y="1" width="16" height="16"/>
                                 <constraints>
                                     <constraint firstAttribute="width" constant="16" id="evS-Jq-L2V"/>

+ 1 - 1
PDF Office/PDF Master/Class/Tools/UserFeekback/View/KMUserListItemView.swift

@@ -48,7 +48,7 @@ class KMUserListItemView: NSView, NibLoadable {
         
         self.tableView.delegate = self
         self.tableView.dataSource = self
-        self.tableView.rowHeight = 20
+        self.tableView.rowHeight = 24
         self.tableView.register(.init(nibNamed: "KMUserListItemCellView", bundle: nil), forIdentifier: .init("KMUserListItemCellView"))
 //        self.tableView.enclosingScrollView.
         self.tableView.enclosingScrollView?.wantsLayer = true

+ 3 - 3
PDF Office/PDF Master/Class/Tools/UserFeekback/Window/KMUserFeekbackWindowController.swift

@@ -185,9 +185,9 @@ import Cocoa
             }
             let cmd = filePath.appending("/Library/Logs/DiagnosticReports/")
             // /Library/Logs/DiagnosticReports/
-            fileaccess?.accessFilePath(cmd, persistPermission: true, with: {
-                
-            })
+//            fileaccess?.accessFilePath(cmd, persistPermission: true, with: {
+//
+//            })
             
             let logString = self._getLog()
             if logString.isEmpty == false {

+ 11 - 11
PDF Office/PDF Master/Class/Tools/UserFeekback/Window/KMUserFeekbackWindowController.xib

@@ -23,24 +23,24 @@
         <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="F0z-JX-Cv5">
             <windowStyleMask key="styleMask" titled="YES" closable="YES"/>
             <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
-            <rect key="contentRect" x="196" y="240" width="380" height="518"/>
+            <rect key="contentRect" x="196" y="240" width="380" height="570"/>
             <rect key="screenRect" x="0.0" y="0.0" width="1440" height="875"/>
             <value key="minSize" type="size" width="380" height="518"/>
             <value key="maxSize" type="size" width="380" height="518"/>
             <value key="minFullScreenContentSize" type="size" width="380" height="518"/>
             <value key="maxFullScreenContentSize" type="size" width="380" height="518"/>
             <view key="contentView" id="se5-gp-TjO">
-                <rect key="frame" x="0.0" y="0.0" width="380" height="518"/>
+                <rect key="frame" x="0.0" y="0.0" width="380" height="570"/>
                 <autoresizingMask key="autoresizingMask"/>
                 <subviews>
                     <box borderType="line" title="Box" titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="JOu-6K-NJo">
-                        <rect key="frame" x="-3" y="-4" width="386" height="524"/>
+                        <rect key="frame" x="-3" y="-4" width="386" height="576"/>
                         <view key="contentView" id="r4s-Kk-eVS">
-                            <rect key="frame" x="3" y="3" width="380" height="518"/>
+                            <rect key="frame" x="3" y="3" width="380" height="570"/>
                             <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                             <subviews>
                                 <box boxType="custom" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="gZm-XF-OMc">
-                                    <rect key="frame" x="0.0" y="438" width="380" height="60"/>
+                                    <rect key="frame" x="0.0" y="490" width="380" height="60"/>
                                     <view key="contentView" id="bdm-Bl-XiT">
                                         <rect key="frame" x="1" y="1" width="378" height="58"/>
                                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@@ -50,7 +50,7 @@
                                     </constraints>
                                 </box>
                                 <box boxType="custom" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="mxl-ba-YzD">
-                                    <rect key="frame" x="30" y="394" width="320" height="44"/>
+                                    <rect key="frame" x="30" y="446" width="320" height="44"/>
                                     <view key="contentView" id="cEX-8W-izR">
                                         <rect key="frame" x="1" y="1" width="318" height="42"/>
                                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@@ -60,7 +60,7 @@
                                     </constraints>
                                 </box>
                                 <box boxType="custom" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="UpN-5h-41j">
-                                    <rect key="frame" x="0.0" y="222" width="380" height="156"/>
+                                    <rect key="frame" x="0.0" y="274" width="380" height="156"/>
                                     <view key="contentView" id="8TU-mF-OwZ">
                                         <rect key="frame" x="1" y="1" width="378" height="154"/>
                                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@@ -70,7 +70,7 @@
                                     </constraints>
                                 </box>
                                 <box boxType="custom" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="0oo-D2-BNd">
-                                    <rect key="frame" x="30" y="142" width="320" height="80"/>
+                                    <rect key="frame" x="30" y="194" width="320" height="80"/>
                                     <view key="contentView" id="iSM-Ac-7pQ">
                                         <rect key="frame" x="1" y="1" width="318" height="78"/>
                                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@@ -80,13 +80,13 @@
                                     </constraints>
                                 </box>
                                 <box boxType="custom" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="DGL-Rr-yAO">
-                                    <rect key="frame" x="30" y="60" width="320" height="70"/>
+                                    <rect key="frame" x="30" y="62" width="320" height="120"/>
                                     <view key="contentView" id="509-Wa-5hS">
-                                        <rect key="frame" x="1" y="1" width="318" height="68"/>
+                                        <rect key="frame" x="1" y="1" width="318" height="118"/>
                                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                     </view>
                                     <constraints>
-                                        <constraint firstAttribute="height" constant="70" id="rne-GH-z0K"/>
+                                        <constraint firstAttribute="height" constant="120" id="rne-GH-z0K"/>
                                     </constraints>
                                 </box>
                                 <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="F8d-uO-ord">