mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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()) {
|
if (!_openButton.isEmpty()) {
|
||||||
const auto w = rect::m::sum::h(st::historyPageButtonPadding)
|
const auto w = rect::m::sum::h(st::historyPageButtonPadding)
|
||||||
+ _openButton.maxWidth();
|
+ _openButton.maxWidth();
|
||||||
if (sponsored) {
|
accumulate_max(maxWidth, w);
|
||||||
accumulate_max(maxWidth, w);
|
|
||||||
} else {
|
|
||||||
maxWidth += w;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
maxWidth += rect::m::sum::h(padding);
|
maxWidth += rect::m::sum::h(padding);
|
||||||
minHeight += rect::m::sum::v(padding);
|
minHeight += rect::m::sum::v(padding);
|
||||||
|
|
Loading…
Add table
Reference in a new issue