Fix webpage layouts with thumbnails.
This commit is contained in:
parent
e173c727f7
commit
fbe93b0afc
|
@ -421,9 +421,7 @@ QSize WebPage::countCurrentSize(int newWidth) {
|
|||
_pixh = (asSponsored ? kSponsoredUserpicLines : linesMax) * lineHeight;
|
||||
do {
|
||||
_pixw = asSponsored ? _pixh : articleThumbWidth(_data->photo, _pixh);
|
||||
auto wleft = asSponsored
|
||||
? innerWidth - st::webPagePhotoDelta - qMax(_pixw, lineHeight)
|
||||
: innerWidth;
|
||||
auto wleft = innerWidth - st::webPagePhotoDelta - qMax(_pixw, lineHeight);
|
||||
|
||||
newHeight = siteNameHeight;
|
||||
|
||||
|
|
Loading…
Reference in New Issue