diff --git a/app/src/main/java/org/mozilla/fenix/components/FindInPageIntegration.kt b/app/src/main/java/org/mozilla/fenix/components/FindInPageIntegration.kt index bf3f6cab5a51..642e65a41f9b 100644 --- a/app/src/main/java/org/mozilla/fenix/components/FindInPageIntegration.kt +++ b/app/src/main/java/org/mozilla/fenix/components/FindInPageIntegration.kt @@ -67,6 +67,10 @@ class FindInPageIntegration( } else { engineViewParent.translationY = 0f } + } else { + if (toolbarInfo.isToolbarDynamic) { + engineViewParentParams.bottomMargin = 0 + } } } @@ -86,6 +90,10 @@ class FindInPageIntegration( // With a fixed toolbar the EngineView is anchored below the toolbar with 0 Y translation. engineViewParent.translationY = -toolbarInfo.toolbar.height.toFloat() } + } else { + // With a bottom toolbar the EngineView is already anchored to the top of the screen. + // Need just to ensure space for the find in page bar under the engineView. + engineViewParentParams.bottomMargin = toolbarInfo.toolbar.height } }