OSDN Git Service
(root)
/
kcd
/
KCD.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
630e92b
)
スクリーンショットリストが真っ白になってしまう問題を修正
author
masakih
<masakih@users.sourceforge.jp>
Tue, 7 Nov 2017 16:03:03 +0000
(
01:03
+0900)
committer
masakih
<masakih@users.sourceforge.jp>
Tue, 7 Nov 2017 16:03:03 +0000
(
01:03
+0900)
KCD/ScreenshotListViewController.swift
patch
|
blob
|
history
diff --git
a/KCD/ScreenshotListViewController.swift
b/KCD/ScreenshotListViewController.swift
index
9fc047e
..
e0639ec
100644
(file)
--- a/
KCD/ScreenshotListViewController.swift
+++ b/
KCD/ScreenshotListViewController.swift
@@
-217,8
+217,8
@@
final class ScreenshotListViewController: NSViewController {
func viewFrameDidChange(_ notification: Notification?) {
func viewFrameDidChange(_ notification: Notification?) {
- maxZoom =
self.
maxZoom(width: collectionView.frame.size.width)
- zoom = min(zoom, maxZoom)
+ maxZoom = maxZoom(width: collectionView.frame.size.width)
+ if zoom > maxZoom { zoom = maxZoom }
}
private func realFromZoom(zoom: Double) -> CGFloat {
}
private func realFromZoom(zoom: Double) -> CGFloat {