Fix countHeight usage

This commit is contained in:
Eric Kotato 2020-05-16 11:32:03 +03:00
parent b829065fca
commit fa098be02e

View file

@ -450,7 +450,7 @@ void ConvertToSupergroupBox::prepare() {
_text.create(this, rpl::single(std::move(details)), st::boxLabel); _text.create(this, rpl::single(std::move(details)), st::boxLabel);
_textWidth = st::boxWideWidth - st::boxPadding.left() - st::boxButtonPadding.right(); _textWidth = st::boxWideWidth - st::boxPadding.left() - st::boxButtonPadding.right();
_textHeight = _text.countHeight(_textWidth); _textHeight = _text->countHeight(_textWidth);
setDimensions(st::boxWideWidth, _textHeight + st::boxPadding.bottom()); setDimensions(st::boxWideWidth, _textHeight + st::boxPadding.bottom());
} }