mirror of
https://github.com/lwouis/alt-tab-macos.git
synced 2026-05-24 11:20:36 +00:00
fix: switcher might show empty on rare occasions (closes #5432)
This commit is contained in:
@@ -307,10 +307,11 @@ class TilesView {
|
||||
}
|
||||
|
||||
static func updateItemsAndLayout(_ preservedScrollOrigin: CGPoint?) {
|
||||
let widthMax = TilesPanel.maxThumbnailsWidth().rounded()
|
||||
var widthMax = TilesPanel.maxThumbnailsWidth().rounded()
|
||||
if Preferences.appearanceSize == .auto {
|
||||
resolveAutoSize(widthMax)
|
||||
Self.updateCachedSizes()
|
||||
widthMax = TilesPanel.maxThumbnailsWidth().rounded()
|
||||
}
|
||||
if let (maxX, maxY, labelHeight, rowSignature) = layoutTileViews(widthMax) {
|
||||
layoutParentViews(maxX, widthMax, maxY, labelHeight)
|
||||
|
||||
Reference in New Issue
Block a user