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