mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +02:00
WebPage open button doesn't inflate the preview.
This commit is contained in:
parent
428e90a844
commit
dcb98ce0fb
1 changed files with 1 additions and 5 deletions
|
@ -649,11 +649,7 @@ QSize WebPage::countOptimalSize() {
|
|||
if (!_openButton.isEmpty()) {
|
||||
const auto w = rect::m::sum::h(st::historyPageButtonPadding)
|
||||
+ _openButton.maxWidth();
|
||||
if (sponsored) {
|
||||
accumulate_max(maxWidth, w);
|
||||
} else {
|
||||
maxWidth += w;
|
||||
}
|
||||
accumulate_max(maxWidth, w);
|
||||
}
|
||||
maxWidth += rect::m::sum::h(padding);
|
||||
minHeight += rect::m::sum::v(padding);
|
||||
|
|
Loading…
Add table
Reference in a new issue