DivView old bounds calculation fix

e65c0274fa07e99939d930bdb6492675129adc02
This commit is contained in:
booster
2024-08-27 14:50:12 +03:00
parent c2280b0be4
commit ed22e4016a
+2 -2
View File
@@ -121,12 +121,12 @@ public final class DivView: VisibleBoundsTrackingView {
public override func layoutSubviews() {
super.layoutSubviews()
guard let blockView else { return }
blockView.frame = bounds
blockView.layoutIfNeeded()
blockView.onVisibleBoundsChanged(
from: oldBounds,
to: blockProvider?.lastVisibleBounds ?? .zero
)
blockView.frame = bounds
blockView.layoutIfNeeded()
}
/// Returns ``DivCardSize`` of the ``DivView``.