mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
DivView old bounds calculation fix
e65c0274fa07e99939d930bdb6492675129adc02
This commit is contained in:
@@ -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``.
|
||||
|
||||
Reference in New Issue
Block a user