fix: showed rows with 1 too-few windows sometimes (see #256)
This commit is contained in:
1 parent
c3749a871a
commit
0eac0867c0
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user