Skip to content

Commit

Permalink
rebased
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBAndrews committed Oct 1, 2023
1 parent 3244106 commit 84919ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mlem/Views/Shared/Cached Image.swift
Original file line number Diff line number Diff line change
@@ -160,7 +160,7 @@ struct CachedImage: View {
.frame(idealWidth: size.width)
.frame(height: size.height)
.onDisappear {
// if the post disappears and the size still isn't computed, just cache it as-is
// if the post disappears and the size still isn't computed, cache the fallback size. This ensures that the view doesn't resize while scrolling back up.
if shouldRecomputeSize {
cacheImageSize()
shouldRecomputeSize = false

0 comments on commit 84919ae

Please sign in to comment.