Skip to content

Commit

Permalink
fix: showed rows with 1 too-few windows sometimes (see #256)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Apr 20, 2020
1 parent ba735c3 commit d7b2250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/main-window/ThumbnailsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d7b2250

Please sign in to comment.