mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix layout of polls with huge questions.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user