mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix webpage with ViewButton links in text.
This commit is contained in:
parent
1ea6224e60
commit
5565da5308
1 changed files with 12 additions and 0 deletions
|
@ -1038,6 +1038,12 @@ PointState Message::pointState(QPoint point) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
auto trect = g.marginsRemoved(st::msgPadding);
|
auto trect = g.marginsRemoved(st::msgPadding);
|
||||||
|
if (_viewButton) {
|
||||||
|
trect.setHeight(trect.height() - _viewButton->height());
|
||||||
|
if (mediaDisplayed) {
|
||||||
|
trect.setHeight(trect.height() - st::mediaInBubbleSkip);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (mediaOnBottom) {
|
if (mediaOnBottom) {
|
||||||
trect.setHeight(trect.height() + st::msgPadding.bottom());
|
trect.setHeight(trect.height() + st::msgPadding.bottom());
|
||||||
}
|
}
|
||||||
|
@ -1213,6 +1219,12 @@ TextState Message::textState(
|
||||||
}
|
}
|
||||||
|
|
||||||
auto trect = bubble.marginsRemoved(st::msgPadding);
|
auto trect = bubble.marginsRemoved(st::msgPadding);
|
||||||
|
if (_viewButton) {
|
||||||
|
trect.setHeight(trect.height() - _viewButton->height());
|
||||||
|
if (mediaDisplayed) {
|
||||||
|
trect.setHeight(trect.height() - st::mediaInBubbleSkip);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (mediaOnBottom) {
|
if (mediaOnBottom) {
|
||||||
trect.setHeight(trect.height()
|
trect.setHeight(trect.height()
|
||||||
+ st::msgPadding.bottom()
|
+ st::msgPadding.bottom()
|
||||||
|
|
Loading…
Add table
Reference in a new issue