Fixed text state of media in sponsored messages.
This commit is contained in:
parent
693eaf9262
commit
6d00165e5a
|
@ -1350,7 +1350,13 @@ TextState WebPage::textState(QPoint point, StateRequest request) const {
|
|||
tshift -= _attach->height();
|
||||
}
|
||||
|
||||
const auto rect = QRect(
|
||||
const auto rect = hasSponsoredMedia
|
||||
? QRect(
|
||||
inner.left(),
|
||||
inner.top(),
|
||||
_attach->width(),
|
||||
_attach->height())
|
||||
: QRect(
|
||||
inner.left(),
|
||||
tshift,
|
||||
paintw,
|
||||
|
|
Loading…
Reference in New Issue