mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-24 09:16:57 +00:00
Fix crash in PeerShortInfoBox.
This commit is contained in:
parent
bd6011c524
commit
e4269ae7fb
@ -671,8 +671,6 @@ PeerShortInfoBox::PeerShortInfoBox(
|
||||
) | rpl::start_with_next([=] {
|
||||
_cover.setScrollTop(_scroll->scrollTop());
|
||||
}, _cover.lifetime());
|
||||
|
||||
setCustomCornersFilling(RectPart::FullTop);
|
||||
}
|
||||
|
||||
PeerShortInfoBox::~PeerShortInfoBox() = default;
|
||||
@ -723,6 +721,7 @@ void PeerShortInfoBox::prepare() {
|
||||
_roundedTop.setDevicePixelRatio(style::DevicePixelRatio());
|
||||
refreshRoundedTopImage(getDelegate()->style().bg->c);
|
||||
|
||||
setCustomCornersFilling(RectPart::FullTop);
|
||||
setDimensionsToContent(st::shortInfoWidth, _rows);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user