Browse Source

【综合】缩略图UI整理

tangchao 1 year ago
parent
commit
7482ee8b83

+ 6 - 2
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMThumbnailTableviewCell.swift

@@ -99,9 +99,13 @@ class KMThumbnailTableviewCell: NSTableCellView {
         
         let rotate = self.pageView.page?.rotation ?? 0 % 360
         if rotate == 90 || rotate == 270 {
+            let max = max(size.height, size.width)
+//            let ws = size.width / max
+            let hs = size.height / max
+            
             let tmp = size.width
-            size.width = size.height
-            size.height = tmp
+            size.width = size.height * hs
+//            size.height = tmp
         }
         
         let pageViewX = (pageSelectionSize.width-size.width) * 0.5 + 15