Fixed updating of CenterWrap after postponed resize of wrapped widget.

This commit is contained in:
23rd 2023-01-23 12:29:45 +03:00
parent 395795e37a
commit 133acab68f

View file

@ -85,6 +85,7 @@ int CenterWrap<RpWidget>::resizeGetHeight(int newWidth) {
} }
void CenterWrap<RpWidget>::wrappedSizeUpdated(QSize size) { void CenterWrap<RpWidget>::wrappedSizeUpdated(QSize size) {
resize(width(), size.height());
updateWrappedPosition(width()); updateWrappedPosition(width());
} }