fix: showed rows with 1 too-few windows sometimes (see #256)

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-04-21 20:40:05 +09:00
1 parent c3749a871a
commit 0eac0867c0
1 file changed
+1 -1
+1 -1
View File
@@ -33,7 +33,7 @@ class ThumbnailsView: NSVisualEffectView {
{ () -> Void in Windows.updateFocusedWindowIndex(index) },
height, screen)
let width = view.frame.size.width
if (currentX + Preferences.interCellPadding + width).rounded(.down) > widthMax {
if (currentX + width).rounded(.down) > widthMax {
currentX = CGFloat(0)
currentY = (currentY + Preferences.interCellPadding + height).rounded(.down)
maxY = max(currentY + height, maxY)