fix: switcher might show empty on rare occasions (closes #5432)
This commit is contained in:
1 parent
545d81d872
commit
6105bb30ad
1 file changed
+2
-1
@@ -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