Skip to content

Commit

Permalink
Fix countHeight usage
Browse files Browse the repository at this point in the history
  • Loading branch information
EricKotato committed May 16, 2020
1 parent e8f448e commit 138f3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/boxes/confirm_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 138f3ec

Please sign in to comment.