mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix webpage layouts with thumbnails.
This commit is contained in:
parent
e173c727f7
commit
fbe93b0afc
1 changed files with 1 additions and 3 deletions
|
@ -421,9 +421,7 @@ QSize WebPage::countCurrentSize(int newWidth) {
|
||||||
_pixh = (asSponsored ? kSponsoredUserpicLines : linesMax) * lineHeight;
|
_pixh = (asSponsored ? kSponsoredUserpicLines : linesMax) * lineHeight;
|
||||||
do {
|
do {
|
||||||
_pixw = asSponsored ? _pixh : articleThumbWidth(_data->photo, _pixh);
|
_pixw = asSponsored ? _pixh : articleThumbWidth(_data->photo, _pixh);
|
||||||
auto wleft = asSponsored
|
auto wleft = innerWidth - st::webPagePhotoDelta - qMax(_pixw, lineHeight);
|
||||||
? innerWidth - st::webPagePhotoDelta - qMax(_pixw, lineHeight)
|
|
||||||
: innerWidth;
|
|
||||||
|
|
||||||
newHeight = siteNameHeight;
|
newHeight = siteNameHeight;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue