Fix countHeight usage
This commit is contained in:
parent
b829065fca
commit
fa098be02e
1 changed files with 1 additions and 1 deletions
|
|
@ -450,7 +450,7 @@ void ConvertToSupergroupBox::prepare() {
|
|||
_text.create(this, rpl::single(std::move(details)), st::boxLabel);
|
||||
|
||||
_textWidth = st::boxWideWidth - st::boxPadding.left() - st::boxButtonPadding.right();
|
||||
_textHeight = _text.countHeight(_textWidth);
|
||||
_textHeight = _text->countHeight(_textWidth);
|
||||
setDimensions(st::boxWideWidth, _textHeight + st::boxPadding.bottom());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue