mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-08 08:04:08 +02:00
Fixed incorrect calculation of title width in sponsored messages.
This commit is contained in:
parent
721877e10a
commit
bbf9d523a6
1 changed files with 1 additions and 1 deletions
|
@ -1077,7 +1077,7 @@ void WebPage::draw(Painter &p, const PaintContext &context) const {
|
|||
? _parent->skipBlockWidth()
|
||||
: 0;
|
||||
const auto titleWidth = sponsored
|
||||
? (paintw - (_pixh ? (_pixh - st::webPagePhotoDelta) : 0))
|
||||
? (paintw - (_pixh ? (_pixh + st::webPagePhotoDelta) : 0))
|
||||
: paintw;
|
||||
_title.drawLeftElided(
|
||||
p,
|
||||
|
|
Loading…
Add table
Reference in a new issue