From b1b291d1693932c68485faf4dd2324878bc67aaa Mon Sep 17 00:00:00 2001 From: mcarare Date: Thu, 21 Mar 2024 19:38:52 +0000 Subject: [PATCH] Bug 1876398 - Adjust y offset for new method of positioning. r=android-reviewers,mcarare See https://android-review.googlesource.com/c/platform/frameworks/support/+/2701713. y offsets are no longer reversed when the menu is near the bottom of the screen. Differential Revision: https://phabricator.services.mozilla.com/D205354 --- .../org/mozilla/fenix/translations/TranslationsDialogBottomSheet.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/translations/TranslationsDialogBottomSheet.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/translations/TranslationsDialogBottomSheet.kt index 8ce9833770ac..db185b5cf5d3 100644 --- a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/translations/TranslationsDialogBottomSheet.kt +++ b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/translations/TranslationsDialogBottomSheet.kt @@ -632,12 +632,12 @@ private fun TranslationsDropdown( offset = if (isInLandscapeMode) { DpOffset( -contextMenuWidthDp + ICON_SIZE, - -ICON_SIZE, + ICON_SIZE, ) } else { DpOffset( 0.dp, - -ICON_SIZE, + ICON_SIZE, ) }, ) -- 2.11.4.GIT