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