mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed links position of inline keyboard when reactions aren't in bubble.
This commit is contained in:
parent
4f6776eeaa
commit
9bc48f4aba
1 changed files with 6 additions and 1 deletions
|
@ -1588,7 +1588,12 @@ TextState Message::textState(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keyboard && item->isHistoryEntry()) {
|
if (keyboard && item->isHistoryEntry()) {
|
||||||
auto keyboardTop = g.top() + g.height() + st::msgBotKbButton.margin;
|
const auto keyboardTop = g.top()
|
||||||
|
+ g.height()
|
||||||
|
+ st::msgBotKbButton.margin
|
||||||
|
+ ((_reactions && !reactionsInBubble)
|
||||||
|
? (st::mediaInBubbleSkip + _reactions->height())
|
||||||
|
: 0);
|
||||||
if (QRect(g.left(), keyboardTop, g.width(), keyboardHeight).contains(point)) {
|
if (QRect(g.left(), keyboardTop, g.width(), keyboardHeight).contains(point)) {
|
||||||
result.link = keyboard->getLink(point - QPoint(g.left(), keyboardTop));
|
result.link = keyboard->getLink(point - QPoint(g.left(), keyboardTop));
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Reference in a new issue