Fix layout of polls with huge questions.

This commit is contained in:
John Preston 2019-11-21 18:28:49 +03:00
parent ec84589eca
commit 2597bc9f4e
1 changed files with 3 additions and 1 deletions

View File

@ -302,10 +302,12 @@ void Poll::updateTexts() {
const auto willStartAnimation = checkAnimationStart();
if (_question.toString() != _poll->question) {
auto options = Ui::WebpageTextTitleOptions();
options.maxw = options.maxh = 0;
_question.setText(
st::historyPollQuestionStyle,
_poll->question,
Ui::WebpageTextTitleOptions());
options);
}
if (_closed != _poll->closed || _subtitle.isEmpty()) {
_closed = _poll->closed;