|
@@ -52,6 +52,8 @@ class KMPageEditThumbnailView: KMPDFThumbnailView {
|
|
|
if (self.canZoomOut() == false) {
|
|
|
return
|
|
|
}
|
|
|
+ let indexpaths = self.collectionView.selectionIndexPaths
|
|
|
+
|
|
|
if (self.itemSize.width < self.defaultItemSize.width) {
|
|
|
self.itemSize = self.defaultItemSize
|
|
|
self.thumbnailSzie = self.defaultThumbnailSzie!
|
|
@@ -60,7 +62,6 @@ class KMPageEditThumbnailView: KMPDFThumbnailView {
|
|
|
self.thumbnailSzie = NSSize(width: self.defaultThumbnailSzie!.width*1.5, height: self.defaultThumbnailSzie!.height*1.5)
|
|
|
}
|
|
|
|
|
|
- let indexpaths = self.collectionView.selectionIndexPaths
|
|
|
self.reloadData()
|
|
|
self.collectionView.selectionIndexPaths = indexpaths
|
|
|
}
|
|
@@ -72,6 +73,8 @@ class KMPageEditThumbnailView: KMPDFThumbnailView {
|
|
|
if (self.canZoomIn() == false) {
|
|
|
return
|
|
|
}
|
|
|
+ let indexpaths = self.collectionView.selectionIndexPaths
|
|
|
+
|
|
|
if (self.itemSize.width > self.defaultItemSize.width) {
|
|
|
self.itemSize = self.defaultItemSize
|
|
|
self.thumbnailSzie = self.defaultThumbnailSzie!
|
|
@@ -80,7 +83,6 @@ class KMPageEditThumbnailView: KMPDFThumbnailView {
|
|
|
self.thumbnailSzie = NSSize(width: self.defaultThumbnailSzie!.width*0.5, height: self.defaultThumbnailSzie!.height*0.5)
|
|
|
}
|
|
|
|
|
|
- let indexpaths = self.collectionView.selectionIndexPaths
|
|
|
self.reloadData()
|
|
|
self.collectionView.selectionIndexPaths = indexpaths
|
|
|
}
|