kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix reaction bar positioning for scaled items.
rodzic
4f1aa34a46
commit
34dec1aec2
|
@ -294,7 +294,7 @@ public final class ConversationReactionOverlay extends FrameLayout {
|
||||||
endY = spaceForReactionBar - Util.halfOffsetFromScale(conversationItemSnapshot.getHeight(), endScale);
|
endY = spaceForReactionBar - Util.halfOffsetFromScale(conversationItemSnapshot.getHeight(), endScale);
|
||||||
|
|
||||||
float contextMenuTop = endY + (conversationItemSnapshot.getHeight() * endScale);
|
float contextMenuTop = endY + (conversationItemSnapshot.getHeight() * endScale);
|
||||||
reactionBarBackgroundY = getReactionBarOffsetForTouch(lastSeenDownPoint, contextMenuTop, menuPadding, reactionBarOffset, reactionBarHeight, reactionBarTopPadding, endY);
|
reactionBarBackgroundY = getReactionBarOffsetForTouch(lastSeenDownPoint, contextMenuTop + Util.halfOffsetFromScale(conversationItemSnapshot.getHeight(), endScale), menuPadding, reactionBarOffset, reactionBarHeight, reactionBarTopPadding, endY);
|
||||||
endApparentTop = endY + Util.halfOffsetFromScale(conversationItemSnapshot.getHeight(), endScale);
|
endApparentTop = endY + Util.halfOffsetFromScale(conversationItemSnapshot.getHeight(), endScale);
|
||||||
} else {
|
} else {
|
||||||
contextMenu.setHeight(contextMenu.getMaxHeight() / 2);
|
contextMenu.setHeight(contextMenu.getMaxHeight() / 2);
|
||||||
|
|
Ładowanie…
Reference in New Issue